]> git.lyx.org Git - features.git/commitdiff
Change semantics of two-arg htmlize to make more consistent with other
authorRichard Heck <rgheck@comcast.net>
Wed, 31 Mar 2010 19:17:06 +0000 (19:17 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 31 Mar 2010 19:17:06 +0000 (19:17 +0000)
functions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33975 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathMatrix.h

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'");
 }
 
 
index a62c8ea44b7bfb5a020e962b9810758b20099950..26a854402606476c29b14cb78aa5010f33ff773c 100644 (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; }