diff --git a/src/tex2lyx/Parser.cpp b/src/tex2lyx/Parser.cpp index d048995d15..11349aac41 100644 --- a/src/tex2lyx/Parser.cpp +++ b/src/tex2lyx/Parser.cpp @@ -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