summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Theegarten <jan@moduleworks.com>2021-01-07 13:45:07 (GMT)
committerJan Theegarten <jan@moduleworks.com>2021-01-07 13:45:07 (GMT)
commitdb1d1fa78e53248ea96a26700b52c393f54c521f (patch)
tree8e58a33b9110be1b659a6fc4ab76fe8efef52dbd /src
parentc37fe44163a254835aef8cf05e59979b18552ab0 (diff)
downloadDoxygen-db1d1fa78e53248ea96a26700b52c393f54c521f.zip
Doxygen-db1d1fa78e53248ea96a26700b52c393f54c521f.tar.gz
Doxygen-db1d1fa78e53248ea96a26700b52c393f54c521f.tar.bz2
Add width attribute of tables and table cells to xml output.
Diffstat (limited to 'src')
-rw-r--r--src/xmldocvisitor.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp
index 77f3e8e..30a5f01 100644
--- a/src/xmldocvisitor.cpp
+++ b/src/xmldocvisitor.cpp
@@ -778,7 +778,17 @@ void XmlDocVisitor::visitPre(DocHtmlTable *t)
{
if (m_hide) return;
m_t << "<table rows=\"" << t->numRows()
- << "\" cols=\"" << t->numColumns() << "\">" ;
+ << "\" cols=\"" << t->numColumns() << "\"" ;
+ HtmlAttribListIterator li(t->attribs());
+ HtmlAttrib* opt;
+ for (li.toFirst(); (opt = li.current()); ++li)
+ {
+ if (opt->name == "width")
+ {
+ m_t << " " << opt->name << "=\"" << opt->value << "\"";
+ }
+ }
+ m_t << ">";
}
void XmlDocVisitor::visitPost(DocHtmlTable *)
@@ -816,7 +826,11 @@ void XmlDocVisitor::visitPre(DocHtmlCell *c)
{
m_t << " align=\"" << opt->value << "\"";
}
- else if (opt->name=="class") // handle markdown generated attributes
+ else if (opt->name == "width")
+ {
+ m_t << " width=\"" << opt->value << "\"";
+ }
+ else if (opt->name == "class") // handle markdown generated attributes
{
if (opt->value.left(13)=="markdownTable") // handle markdown generated attributes
{