commit 63f6ee213cd61cc3c23eec90dfb1533e7fe8c34e
Author: Richard Heck <[email protected]>
Date: Wed Jun 29 21:47:51 2016 -0400
Output column width info for XHTML.
(cherry picked from commit ddc28f0374478355217f975a25e544af7dbc8ea9)
---
src/insets/InsetTabular.cpp | 7 +++++++
status.22x | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 3c7f2c2..3d3bebd 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -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:
diff --git a/status.22x b/status.22x
index 5e92dd3..a5d56b5 100644
--- a/status.22x
+++ b/status.22x
@@ -165,6 +165,8 @@ What's new
* LYXHTML
+- Output width of table columns (bug 8168).
+
- Fix output of math sizes (bug 10129).