From 2635724b57cc928e634ff09b6748a2dd9532ac3d Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 16 Dec 2009 15:50:31 +0000 Subject: [PATCH] In a normal grid, we can just use . git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32547 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathGrid.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index 3d534c8b1f..432a39a2f2 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -967,19 +967,19 @@ void InsetMathGrid::normalize(NormalStream & os) const } -// FIXME We might want to check here if we actually have any -// kind of table structure, and only output the surrounding -// tags if we do, otherwise just outputting . void InsetMathGrid::mathmlize(MathStream & os) const { - os << MTag("mtable"); + bool const havetable = nrows() > 1; + if (havetable) + os << MTag("mtable"); for (row_type row = 0; row < nrows(); ++row) { - os << MTag("mtr"); + os << MTag("mrow"); for (col_type col = 0; col < ncols(); ++col) os << cell(index(row, col)); - os << ETag("mtr"); + os << ETag("mrow"); } - os << ETag("mtable"); + if (havetable) + os << ETag("mtable"); }