On Fri, Mar 14, 2003 at 11:32:20AM +0000, John Levon wrote: > On Thu, Mar 13, 2003 at 11:20:31PM -0800, Kayvan A. Sylvan wrote: > > > > I know nothing about literate programming latex. Give a poor man a break > > > ... i.e. what format is this. ascii ? latex ? what ? > > > > Yes, it's simple ascii. Logically, it is equivalent to the latex export. > > I'm afraid you're going to have to do a little debugging yourself ... > the ASCII export for newline is in insets/insetnewline.C::ascii(). It > just outputs a newline to the file. So what is going wrong ??
Here is the fix. -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
Index: src/ChangeLog =================================================================== RCS file: /cvs/lyx/lyx-devel/src/ChangeLog,v retrieving revision 1.1123 diff -u -r1.1123 ChangeLog --- src/ChangeLog 2003/03/14 13:37:33 1.1123 +++ src/ChangeLog 2003/03/15 00:20:19 @@ -1,3 +1,9 @@ +2003-03-14 Kayvan Sylvan <[EMAIL PROTECTED]> + + * paragraph_pimpl.C (simpleTeXSpecialChars): Added fix for the + newline inset which *can* get inserted in the pass_thru layouts. + This is primarily for literate documents. + 2003-03-14 Dekel Tsur <[EMAIL PROTECTED]> * buffer.C: increment LYX_FORMAT to 223 Index: src/paragraph_pimpl.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/paragraph_pimpl.C,v retrieving revision 1.56 diff -u -r1.56 paragraph_pimpl.C --- src/paragraph_pimpl.C 2003/03/13 17:50:39 1.56 +++ src/paragraph_pimpl.C 2003/03/15 00:20:19 @@ -506,8 +506,13 @@ value_type const c) { if (style.pass_thru) { - if (c != '\0') - os << c; + if (c != Paragraph::META_INSET) { + if (c != '\0') + os << c; + } else { + Inset const * inset = owner_->getInset(i); + inset->ascii(buf, os, 0); + } return; }