Attached is a patch to support \newline in tex2lyx.
Jürgen, OK for branch?

regards Uwe
Index: text.cpp
===================================================================
--- text.cpp	(revision 21744)
+++ text.cpp	(working copy)
@@ -2186,6 +2186,12 @@
 			}
 		}
 
+		else if (t.cs() == "newline") {
+			context.check_layout(os);
+			os << "\n\\" << t.cs() << "\n";
+			skip_braces(p); // eat {}
+		}
+
 		else if (t.cs() == "input" || t.cs() == "include"
 			 || t.cs() == "verbatiminput") {
 			string name = '\\' + t.cs();

Reply via email to