Jean-Marc Lasgouttes <lasgout...@lyx.org> writes: > Uwe Stöhr <uwesto...@web.de> writes: > >> Jean-Marc Lasgouttes schrieb: >> >>> Do you have problems with importing the following file (an accent in >>> a comment) >> >> Yes, absolutely: tex2lyx vanishes the character and everything behind it, >> see the attached result. > > I do not have the file I sent anymore. Was there something after the > accented character?
While we are at it, here is my next try. You can revert all other patches I made you apply, BTW. JMarc
svndiff src/tex2lyx/ Index: src/tex2lyx/Parser.cpp =================================================================== --- src/tex2lyx/Parser.cpp (révision 29386) +++ src/tex2lyx/Parser.cpp (copie de travail) @@ -405,7 +405,7 @@ void Parser::tokenize_one() // we want to preserve them in the preamble docstring s; while (is_.get(c) && catcode(c) != catNewline) - s += c; + s.push_back(c); // handle possible DOS line ending if (catcode(c) == catNewline) c = getNewline(is_, c);