Jean-Marc Lasgouttes wrote:

> I think that the case of mathed is much simpler, though.

Yes, see the attached untested patch. Uwe, put that in your private tree and
test it if you really want that to be included in some future release
(without making any promise whether it can be in 1.3.6 and/or 1.4.0).


Georg
Index: src/mathed/math_hullinset.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_hullinset.C,v
retrieving revision 1.66.2.4
diff -u -p -r1.66.2.4 math_hullinset.C
--- src/mathed/math_hullinset.C	30 Dec 2004 14:54:17 -0000	1.66.2.4
+++ src/mathed/math_hullinset.C	1 Jul 2005 14:57:33 -0000
@@ -383,20 +383,20 @@ void MathHullInset::footer_write(WriteSt
 
 	else if (type_ == "equation")
 		if (n)
-			os << "\\end{equation" << star(n) << "}\n";
+			os << "\n\\end{equation" << star(n) << "}\n";
 		else
-			os << "\\]\n";
+			os << "\n\\]\n";
 
 	else if (type_ == "eqnarray" || type_ == "align" || type_ == "flalign"
 		 || type_ == "alignat" || type_ == "xalignat"
 		 || type_ == "gather" || type_ == "multline")
-	        os << "\\end{" << type_ << star(n) << "}\n";
+	        os << "\n\\end{" << type_ << star(n) << "}\n";
 
 	else if (type_ == "xxalignat")
-		os << "\\end{" << type_ << "}\n";
+		os << "\n\\end{" << type_ << "}\n";
 
 	else
-		os << "\\end{unknown" << star(n) << '}';
+		os << "\n\\end{unknown" << star(n) << '}';
 }
 
 

Reply via email to