File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -778,7 +778,17 @@ void XmlDocVisitor::visitPre(DocHtmlTable *t)
778
778
{
779
779
if (m_hide) return ;
780
780
m_t << " <table rows=\" " << t->numRows ()
781
- << " \" cols=\" " << t->numColumns () << " \" >" ;
781
+ << " \" cols=\" " << t->numColumns () << " \" " ;
782
+ HtmlAttribListIterator li (t->attribs ());
783
+ HtmlAttrib* opt;
784
+ for (li.toFirst (); (opt = li.current ()); ++li)
785
+ {
786
+ if (opt->name == " width" )
787
+ {
788
+ m_t << " " << opt->name << " =\" " << opt->value << " \" " ;
789
+ }
790
+ }
791
+ m_t << " >" ;
782
792
}
783
793
784
794
void XmlDocVisitor::visitPost (DocHtmlTable *)
@@ -816,7 +826,11 @@ void XmlDocVisitor::visitPre(DocHtmlCell *c)
816
826
{
817
827
m_t << " align=\" " << opt->value << " \" " ;
818
828
}
819
- else if (opt->name ==" class" ) // handle markdown generated attributes
829
+ else if (opt->name == " width" )
830
+ {
831
+ m_t << " width=\" " << opt->value << " \" " ;
832
+ }
833
+ else if (opt->name == " class" ) // handle markdown generated attributes
820
834
{
821
835
if (opt->value .left (13 )==" markdownTable" ) // handle markdown generated attributes
822
836
{
You can’t perform that action at this time.
0 commit comments