diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-08-27 13:43:49 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2022-08-27 13:43:49 +0200 |
commit | b0c1ae05a376436fac9c31646234c29105b17865 (patch) | |
tree | 1cd27426b2d989dec14b13effb53f9bb48e41c25 | |
parent | fc4feb6f1abff887e22eaca05ae260e5eb7376c7 (diff) | |
download | qpdf-b0c1ae05a376436fac9c31646234c29105b17865.tar.zst |
Fix commit b45420a
-rw-r--r-- | libqpdf/QPDFTokenizer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libqpdf/QPDFTokenizer.cc b/libqpdf/QPDFTokenizer.cc index 56550266..cd8f932d 100644 --- a/libqpdf/QPDFTokenizer.cc +++ b/libqpdf/QPDFTokenizer.cc @@ -137,7 +137,7 @@ QPDFTokenizer::presentCharacter(char ch) { handleCharacter(ch); - if (this->in_token) { //} && !this->unread_char) { + if (this->in_token) { this->raw_val += ch; } } @@ -145,9 +145,9 @@ QPDFTokenizer::presentCharacter(char ch) void QPDFTokenizer::handleCharacter(char ch) { - // State machine is implemented such that some characters may be - // handled more than once. This happens whenever you have to use - // the character that caused a state change in the new state. + // State machine is implemented such that the final character may not be + // handled. This happens whenever you have to use a character from the + // next token to detect the end of the current token. switch (this->state) { case st_top: |