From: Richard Heck Date: Wed, 31 Mar 2010 19:17:06 +0000 (+0000) Subject: Change semantics of two-arg htmlize to make more consistent with other X-Git-Tag: 2.0.0~3605 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=96390e0ff7537758fcc18c048c9faaa1a463f33e;p=features.git 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 --- diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index c918243325..036aea410b 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -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'"); } diff --git a/src/mathed/InsetMathMatrix.h b/src/mathed/InsetMathMatrix.h index a62c8ea44b..26a8544026 100644 --- a/src/mathed/InsetMathMatrix.h +++ b/src/mathed/InsetMathMatrix.h @@ -42,6 +42,8 @@ public: /// void mathmlize(MathStream &) const; /// + void htmlize(HtmlStream &) const; + /// void octave(OctaveStream &) const; /// InsetCode lyxCode() const { return MATH_MATRIX_CODE; }