From: Richard Heck Date: Thu, 30 Jun 2016 01:47:51 +0000 (-0400) Subject: Output column width info for XHTML. X-Git-Tag: 2.2.1~80 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=63f6ee213cd61cc3c23eec90dfb1533e7fe8c34e;p=features.git Output column width info for XHTML. (cherry picked from commit ddc28f0374478355217f975a25e544af7dbc8ea9) --- 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).