]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #10153: There's a mechanism in XHTML output that defers the
authorRichard Heck <rgheck@lyx.org>
Mon, 20 Jun 2016 14:21:22 +0000 (10:21 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 20 Jun 2016 14:22:50 +0000 (10:22 -0400)
output of tags until we know they're needed. In the case of HTML
tables, empty cells should of course be output, so we need to force
the tags to be output.

src/insets/InsetTabular.cpp

index b5344df2a415deee7c9ecbc4526b5ae24e708cc5..7ad86633dae7116666655750b6d5a6c426b6f0c9 100644 (file)
@@ -3018,7 +3018,7 @@ docstring Tabular::xhtmlRow(XHTMLStream & xs, row_type row,
                else if (isMultiRow(cell))
                        attr << " rowspan='" << rowSpan(cell) << "'";
 
-               xs << html::StartTag(celltag, attr.str()) << html::CR();
+               xs << html::StartTag(celltag, attr.str(), true) << html::CR();
                ret += cellInset(cell)->xhtml(xs, runparams);
                xs << html::EndTag(celltag) << html::CR();
                ++cell;