commit ddc28f0374478355217f975a25e544af7dbc8ea9
Author: Richard Heck <[email protected]>
Date:   Wed Jun 29 21:47:51 2016 -0400

    Output column width info for XHTML.
---
 src/insets/InsetTabular.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 7728a1a..7804232 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -2993,6 +2993,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:

Reply via email to