Am Mittwoch, 6. Februar 2013 um 18:24:10, schrieb Kornel Benko <kor...@lyx.org> > Am Mittwoch, 6. Februar 2013 um 14:04:51, schrieb Kornel Benko > <kor...@lyx.org> > > Hi, > > after the changes for the 'Verbatim' the import of > > src/tex2lyx/test/test-insets.tex fails. > > > > Kornel > > The main error here are this lines created by the actual tex2lyx > > test-insets.lyx:1007 > \ > \begin_inset ERT > status collapsed > > \begin_layout Plain Layout > > \backslash > > \end_layout > > \begin_layout Plain Layout > > \end_layout > > \end_inset > ###################################### > The previous tex2lyx had: > \begin_inset Newline newline > \end_inset > ###################################### > > Most suspecting is the line 1007, which contains only '\\'. > > In fact, removing this line, the resulting file is readable by lyx again.
This is one minimal example which breaks tex2lyx: \documentclass{article} \usepackage{listings} \begin{document} Inline: \lstinline!int a=5;!\\ \end{document} ########################### Entering _anything_ in front of '\\' makes the pasring be OK. (E.g. this imput is OK [notice the blank] \lstinline!int a=5;! \\) I could not see, where the code runs wrong parsing verbatim. Parser.cpp:572 looks OK, and each text like \lstinline!int a=5;!TEXT\\ will be correctly parsed. ('TEXT' is not truncated, while '\\' translates to '\begin_inset Newline newline \end_inset') Jean-Marc, possibly you can made some sense into it. Kornel
signature.asc
Description: This is a digitally signed message part.