]> git.lyx.org Git - features.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:26:40 +0000 (10:26 -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.

(cherry picked from commit 35d449c5dae11bbff53e2a35697a4fc3f03318ba)

src/insets/InsetTabular.cpp
status.22x

index ac636763694dace5c5fe30b826ad98b3667ae06a..3c7f2c2ba1a634336d1e461edb4b9534240d7032 100644 (file)
@@ -3019,7 +3019,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;
index c3eb7d71e3728253e8874b383d835e4071b09071..90ed5f1cd4f430e002a2a702d8b9b27c00a0a07e 100644 (file)
@@ -69,6 +69,8 @@ What's new
 - Resolve problem on Windows with importing files from directories with
   accented characters on FAT drives (bug 10218).
 
+- Make sure we output all XHTML table cells, even the empty ones (bug 10153).
+
 
 * LYX2LYX