]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathGrid.cpp
Change semantics of two-arg htmlize to make more consistent with other
[features.git] / src / mathed / InsetMathGrid.cpp
index c918243325646214de0fba70b4a659e4328227a0..036aea410bb68ce950d2f9635fbed9a2bd45e286 100644 (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'");
 }