From: André Pönitz Date: Fri, 27 Jul 2001 09:55:44 +0000 (+0000) Subject: don't output ' ' after '$' unless needed X-Git-Tag: 1.6.10~20981 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=739b051626ca8bbe96f90b618494f04df1202ed1;p=features.git don't output ' ' after '$' unless needed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2364 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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: