On 21-May-2002 Dekel Tsur wrote: > The attached 1.1.6 file is not read correctly by LyX: > Note that the ERT text contains a backslash and a space, > so the latex output is "a\ b". > However, lyx-1.2.0 drops the space when reading the file, so > the latex output is "a\b" which gives an error. >
The attached patch is a oneliner and should be applied to fix the above patch. Jug -- -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Mitterstrich 151/A Tel/Fax: +39-0471-450260 / +39-0471-450253 I-39050 Steinegg Web: http://www.lyx.org/~jug -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ The problem with this country is that there is no death penalty for incompetence.
Index: src/buffer.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/buffer.C,v retrieving revision 1.336 diff -u -p -r1.336 buffer.C --- src/buffer.C 10 May 2002 13:14:16 -0000 1.336 +++ src/buffer.C 21 May 2002 09:57:19 -0000 @@ -420,6 +420,9 @@ void Buffer::insertErtContents(Paragraph { string str = frontStrip(strip(ert_comp.contents, ' '), ' '); if (!str.empty()) { + // we only skip completely empty ERT (only spaces) otherwise + // we have to insert it as is. + str = ert_comp.contents; lyxerr[Debug::INSETS] << "ERT contents:\n'" << str << "'" << endl; // check if we have already an ert inset a position earlier