mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
a1d72cffca
commit
96390e0ff7
@ -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'");
|
||||
}
|
||||
|
||||
|
||||
|
@ -42,6 +42,8 @@ public:
|
||||
///
|
||||
void mathmlize(MathStream &) const;
|
||||
///
|
||||
void htmlize(HtmlStream &) const;
|
||||
///
|
||||
void octave(OctaveStream &) const;
|
||||
///
|
||||
InsetCode lyxCode() const { return MATH_MATRIX_CODE; }
|
||||
|
Loading…
Reference in New Issue
Block a user