]> git.lyx.org Git - features.git/commitdiff
don't output ' ' after '$' unless needed
authorAndré Pönitz <poenitz@gmx.net>
Fri, 27 Jul 2001 09:55:44 +0000 (09:55 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 27 Jul 2001 09:55:44 +0000 (09:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2364 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_matrixinset.C

index d23f64bcf1b7b098843dc67a883b1f4b19808aa3..aa50dae6bcdbfd4c8ac4ba114514bd17d27df828 100644 (file)
@@ -236,7 +236,9 @@ void MathMatrixInset::header_write(std::ostream & os) const
 
        switch (getType()) {
                case LM_OT_SIMPLE:
-                       os << "$ "; 
+                       os << '$';
+                       if (cell(0).empty())
+                               os << ' ';
                        break;
 
                case LM_OT_EQUATION:
@@ -270,7 +272,7 @@ void MathMatrixInset::footer_write(std::ostream & os) const
 
        switch (getType()) {
                case LM_OT_SIMPLE:
-                       os << "$";
+                       os << '$';
                        break;
 
                case LM_OT_EQUATION: