mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
In a normal grid, we can just use <mrow>.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32547 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ce2e071cdf
commit
2635724b57
@ -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 <mrow>.
|
|
||||||
void InsetMathGrid::mathmlize(MathStream & os) const
|
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) {
|
for (row_type row = 0; row < nrows(); ++row) {
|
||||||
os << MTag("mtr");
|
os << MTag("mrow");
|
||||||
for (col_type col = 0; col < ncols(); ++col)
|
for (col_type col = 0; col < ncols(); ++col)
|
||||||
os << cell(index(row, col));
|
os << cell(index(row, col));
|
||||||
os << ETag("mtr");
|
os << ETag("mrow");
|
||||||
}
|
}
|
||||||
os << ETag("mtable");
|
if (havetable)
|
||||||
|
os << ETag("mtable");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user