diff options
author | albert-github <albert.tests@gmail.com> | 2018-08-14 11:50:11 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-08-14 11:50:11 (GMT) |
commit | eb4af56797a4bd5396c4ecda76196de61e709f56 (patch) | |
tree | 7d0f9782aeb4ce770db2950b0b7395dc95e99ab9 /src/markdown.cpp | |
parent | c82abe1f23ec55aa1d05f118c2bae3aac3b68296 (diff) | |
download | Doxygen-eb4af56797a4bd5396c4ecda76196de61e709f56.zip Doxygen-eb4af56797a4bd5396c4ecda76196de61e709f56.tar.gz Doxygen-eb4af56797a4bd5396c4ecda76196de61e709f56.tar.bz2 |
Bug 792373 - Table markdown produces invalid xhtml code
<tr class="markdownTableBody" class="markdownTableRowOdd">
The class="markdownTableBody" is not necessary as the "TableRow" part is only emitted for the body, so class="markdownTableBody" has been removed.
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 0ca95a4..dff64ff 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -1780,22 +1780,20 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size) QCString cellTag("th"), cellClass("class=\"markdownTableHead"); for (unsigned row = 0; row < tableContents.size(); row++) { - out.addStr(" <tr class=\"markdownTable"); if (row) { - out.addStr("Body\""); if (row % 2) { - out.addStr(" class=\"markdownTableRowOdd\">\n"); + out.addStr("<tr class=\"markdownTableRowOdd\">\n"); } else { - out.addStr(" class=\"markdownTableRowEven\">\n"); + out.addStr("<tr class=\"markdownTableRowEven\">\n"); } } else { - out.addStr("Head\">\n"); + out.addStr(" <tr class=\"markdownTableHead\">\n"); } for (int c = 0; c < columns; c++) { |