Change semantics of two-arg htmlize to make more consistent with other

functions.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33975 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-31 19:17:06 +00:00
parent a1d72cffca
commit 96390e0ff7
2 changed files with 6 additions and 2 deletions

View File

@ -998,6 +998,8 @@ void InsetMathGrid::mathmlize(MathStream & os) const
}
// FIXME XHTML
// We need to do something about alignment here.
void InsetMathGrid::htmlize(HtmlStream & os, string attrib) const
{
bool const havetable = nrows() > 1 || ncols() > 1;
@ -1005,7 +1007,7 @@ void InsetMathGrid::htmlize(HtmlStream & os, string attrib) const
os << cell(index(0, 0));
return;
}
os << MTag("table", "class='" + attrib + "'");
os << MTag("table", attrib);
for (row_type row = 0; row < nrows(); ++row) {
os << MTag("tr");;
for (col_type col = 0; col < ncols(); ++col) {
@ -1021,7 +1023,7 @@ void InsetMathGrid::htmlize(HtmlStream & os, string attrib) const
void InsetMathGrid::htmlize(HtmlStream & os) const
{
htmlize(os, "mathtable");
htmlize(os, "class='mathtable'");
}

View File

@ -42,6 +42,8 @@ public:
///
void mathmlize(MathStream &) const;
///
void htmlize(HtmlStream &) const;
///
void octave(OctaveStream &) const;
///
InsetCode lyxCode() const { return MATH_MATRIX_CODE; }