diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-24 13:29:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-24 13:29:33 (GMT) |
commit | c4ee5506905c322422566de149dd063d67cd9fc8 (patch) | |
tree | 360ebc715fb800e952b21116930386c5e82a07e8 /src | |
parent | 0a5d96e08c85c36a162083042171593b1f049ff1 (diff) | |
parent | b1c78ad5a0f15ae67a70d9d7a36e907ac89734cd (diff) | |
download | Doxygen-c4ee5506905c322422566de149dd063d67cd9fc8.zip Doxygen-c4ee5506905c322422566de149dd063d67cd9fc8.tar.gz Doxygen-c4ee5506905c322422566de149dd063d67cd9fc8.tar.bz2 |
Merge pull request #8125 from albert-github/feature/bug_cnt_md_table
Miscounting lines with markdown table
Diffstat (limited to 'src')
-rw-r--r-- | src/markdown.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 2130703..68f13c1 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -1933,16 +1933,16 @@ int Markdown::writeTableBlock(const char *data,int size) { if (row % 2) { - m_out.addStr("<tr class=\"markdownTableRowOdd\">"); + m_out.addStr("\n<tr class=\"markdownTableRowOdd\">"); } else { - m_out.addStr("<tr class=\"markdownTableRowEven\">"); + m_out.addStr("\n<tr class=\"markdownTableRowEven\">"); } } else { - m_out.addStr(" <tr class=\"markdownTableHead\">"); + m_out.addStr("\n <tr class=\"markdownTableHead\">"); } for (int c = 0; c < columns; c++) { @@ -2000,7 +2000,7 @@ int Markdown::writeTableBlock(const char *data,int size) } cellTag = "td"; cellClass = "class=\"markdownTableBody"; - m_out.addStr(" </tr>\n"); + m_out.addStr(" </tr>"); } m_out.addStr("</table>\n"); |