From 63f6ee213cd61cc3c23eec90dfb1533e7fe8c34e Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 29 Jun 2016 21:47:51 -0400 Subject: [PATCH] Output column width info for XHTML. (cherry picked from commit ddc28f0374478355217f975a25e544af7dbc8ea9) --- src/insets/InsetTabular.cpp | 7 +++++++ status.22x | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 3c7f2c2ba1..3d3bebd60e 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 5e92dd3163..a5d56b5303 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).