On Friday 06 June 2003 00:56, John Levon wrote: > A much-requested feature, this enables carriage returns in ERT to mean > exactly that rather than the main-text "return is new par" behaviour. > > Also a bit of a cleanup.
Since it is springtime that is always appropriate. :-) > Comments ? One small glitch I found above. > regards > john > > p.s. I am interested in looking at an alltt-based insetcode to replace > lyx-code environment. It looks pretty easy from a naive look. > Index: insets/insetert.C > =================================================================== > RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/insets/insetert.C,v > retrieving revision 1.129 > diff -u -p -r1.129 insetert.C > --- insets/insetert.C 3 Jun 2003 15:10:08 -0000 1.129 > +++ insets/insetert.C 5 Jun 2003 23:51:30 -0000 > @@ -346,7 +346,7 @@ int InsetERT::latex(Buffer const *, ostr > } > ++par; > if (par != end) { > - os << "\n\n"; > + os << "\n"; > lines += 2; This part looks suspicious, shouldn't the last line become ++lines? > } > } -- José Abílio