is_header_row = is_header_row and is_header
rowspan = ' rowspan="{}"'.format(entry.attrib['rowspan']) if 'rowspan' in entry.attrib else ''
colspan = ' colspan="{}"'.format(entry.attrib['colspan']) if 'colspan' in entry.attrib else ''
- row_data += '<{0}{2}{3}>{1}</{0}>'.format(
+ classes = ' class="{}"'.format(entry.attrib['class']) if 'class' in entry.attrib else ''
+ row_data += '<{0}{2}{3}{4}>{1}</{0}>'.format(
'th' if is_header else 'td',
parse_desc(state, entry),
- rowspan, colspan)
+ rowspan, colspan, classes)
# Table head is opened upon encountering first header row
# and closed upon encountering first body row (in case it was
<h1>
Doxygen 1.8.18 features
</h1>
-<p>Tested separately because the CI has only 1.8.17 right now.</p><table class="m-table"><tbody><tr><td colspan="2">Table</td><td rowspan="3">with</td></tr><tr><td>colspan</td><td>and</td></tr><tr><td colspan="2">rowspan</td></tr></tbody></table>
+<p>Tested separately because the CI has only 1.8.17 right now.</p><table class="m-table"><tbody><tr><td colspan="2">Table</td><td rowspan="3">with</td></tr><tr><td class="m-success">classes</td><td>and</td></tr><tr><td colspan="2">col/rowspan</td></tr></tbody></table>
</div>
</div>
</div>