From b0c1ae05a376436fac9c31646234c29105b17865 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 27 Aug 2022 12:43:49 +0100 Subject: Fix commit b45420a --- libqpdf/QPDFTokenizer.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libqpdf/QPDFTokenizer.cc') 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: -- cgit v1.2.3-54-g00ecf