From 739b051626ca8bbe96f90b618494f04df1202ed1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 27 Jul 2001 09:55:44 +0000 Subject: [PATCH] don't output ' ' after '$' unless needed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2364 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_matrixinset.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mathed/math_matrixinset.C b/src/mathed/math_matrixinset.C index d23f64bcf1..aa50dae6bc 100644 --- a/src/mathed/math_matrixinset.C +++ b/src/mathed/math_matrixinset.C @@ -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: -- 2.39.2