Handle backslash at end of line

This occurs when importing the sampleart.ltx file from ltugboat document class.
This commit is contained in:
Jean-Marc Lasgouttes 2024-10-24 17:10:37 +02:00
parent d6fba3b94e
commit a2c1229ac1

View File

@ -882,6 +882,9 @@ void Parser::tokenize_one()
if (!is_) {
error("unexpected end of input");
} else {
// A single \ at the end of a line is like "\ "
if (catcode(c) == catNewline)
c = ' ';
docstring s(1, c);
if (catcode(c) == catLetter) {
// collect letters