Commit b0c1ae05a376436fac9c31646234c29105b17865

Authored by m-holger
1 parent fc4feb6f

Fix commit b45420a

Showing 1 changed file with 4 additions and 4 deletions
libqpdf/QPDFTokenizer.cc
@@ -137,7 +137,7 @@ QPDFTokenizer::presentCharacter(char ch) @@ -137,7 +137,7 @@ QPDFTokenizer::presentCharacter(char ch)
137 { 137 {
138 handleCharacter(ch); 138 handleCharacter(ch);
139 139
140 - if (this->in_token) { //} && !this->unread_char) { 140 + if (this->in_token) {
141 this->raw_val += ch; 141 this->raw_val += ch;
142 } 142 }
143 } 143 }
@@ -145,9 +145,9 @@ QPDFTokenizer::presentCharacter(char ch) @@ -145,9 +145,9 @@ QPDFTokenizer::presentCharacter(char ch)
145 void 145 void
146 QPDFTokenizer::handleCharacter(char ch) 146 QPDFTokenizer::handleCharacter(char ch)
147 { 147 {
148 - // State machine is implemented such that some characters may be  
149 - // handled more than once. This happens whenever you have to use  
150 - // the character that caused a state change in the new state. 148 + // State machine is implemented such that the final character may not be
  149 + // handled. This happens whenever you have to use a character from the
  150 + // next token to detect the end of the current token.
151 151
152 switch (this->state) { 152 switch (this->state) {
153 case st_top: 153 case st_top: