Add some more debug printfs, relocate extra newline detection after stream

token.
This commit is contained in:
Michael R Sweet
2023-12-15 12:57:31 -05:00
parent 2dfb560f8b
commit 83bfb135c6
3 changed files with 16 additions and 3 deletions

View File

@ -447,6 +447,13 @@ _pdfioTokenRead(_pdfio_token_t *tb, // I - Token buffer/stack
return (false);
}
}
if (ch == '\r')
{
// Look for a trailing LF
if ((ch = get_char(tb)) != EOF && ch != '\n')
tb->bufptr --;
}
break;
case 'N' : // number