]> git.lyx.org Git - features.git/commitdiff
Output column width info for XHTML.
authorRichard Heck <rgheck@lyx.org>
Thu, 30 Jun 2016 01:47:51 +0000 (21:47 -0400)
committerRichard Heck <rgheck@lyx.org>
Thu, 30 Jun 2016 01:49:28 +0000 (21:49 -0400)
(cherry picked from commit ddc28f0374478355217f975a25e544af7dbc8ea9)

src/insets/InsetTabular.cpp
status.22x

index 3c7f2c2ba1a634336d1e461edb4b9534240d7032..3d3bebd60e30029cceab1d373e808271f6a9e42f 100644 (file)
@@ -2988,6 +2988,13 @@ docstring Tabular::xhtmlRow(XHTMLStream & xs, row_type row,
                        continue;
 
                stringstream attr;
+               
+               Length const cwidth = column_info[c].p_width;
+               if (!cwidth.zero()) {
+                       string const hwidth = cwidth.asHTMLString();
+                       attr << "style =\"width: " << hwidth << ";\" ";
+               }
+               
                attr << "align='";
                switch (getAlignment(cell)) {
                case LYX_ALIGN_LEFT:
index 5e92dd3163dc3b540d949ea1e5c2e9620ccc2491..a5d56b5303c3447b0c6db2d2ed5481a34ac17709 100644 (file)
@@ -165,6 +165,8 @@ What's new
 
 * LYXHTML
 
+- Output width of table columns (bug 8168).
+
 - Fix output of math sizes (bug 10129).