Rob Bearman wrote:

> The problem seems to be tex2lyx's insertion of "\begin_layout Standard"
> before the enumeration inside the box inset.

Yes. The attached fix is going in now.


Georg
Index: src/tex2lyx/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/tex2lyx/ChangeLog,v
retrieving revision 1.91
diff -u -p -r1.91 ChangeLog
--- src/tex2lyx/ChangeLog	15 Apr 2005 14:04:13 -0000	1.91
+++ src/tex2lyx/ChangeLog	18 May 2005 07:16:23 -0000
@@ -1,3 +1,49 @@
+2005-04-18  Georg Baum  <[EMAIL PROTECTED]>
+
+	* text.C (parse_comment): Don't start a new paragraph for "%\n"
+
 2005-04-13  Georg Baum  <[EMAIL PROTECTED]>
 
 	* text.C (normalize_filename): new, split off from parse_text
Index: src/tex2lyx/text.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/tex2lyx/text.C,v
retrieving revision 1.56
diff -u -p -r1.56 text.C
--- src/tex2lyx/text.C	15 Apr 2005 14:04:13 -0000	1.56
+++ src/tex2lyx/text.C	18 May 2005 07:16:24 -0000
@@ -789,12 +1117,13 @@ void parse_environment(Parser & p, ostre
 		p.skip_spaces();
 }
 
+
 /// parses a comment and outputs it to \p os.
 void parse_comment(Parser & p, ostream & os, Token const & t, Context & context)
 {
 	BOOST_ASSERT(t.cat() == catComment);
-	context.check_layout(os);
 	if (!t.cs().empty()) {
+		context.check_layout(os);
 		handle_comment(os, '%' + t.cs(), context);
 		if (p.next_token().cat() == catNewline) {
 			// A newline after a comment line starts a new

Reply via email to