]> 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:47:51 +0000 (21:47 -0400)
src/insets/InsetTabular.cpp

index 7728a1abd46cd502a645fc830c484fda263394cc..7804232d4df43f008690f2e6fe583a2b1b54dcb0 100644 (file)
@@ -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: