diff options
author | albert-github <albert.tests@gmail.com> | 2019-08-27 17:06:59 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-08-27 17:06:59 (GMT) |
commit | def222ab7fa1ad9e51dff1b11b610c9e1e4af067 (patch) | |
tree | 5bba6ff964fa14fdbaf6bd4eda9c3636ec129649 /src | |
parent | 3d4eb56c5fc8135129e7dd748e2df7a4757195a7 (diff) | |
download | Doxygen-def222ab7fa1ad9e51dff1b11b610c9e1e4af067.zip Doxygen-def222ab7fa1ad9e51dff1b11b610c9e1e4af067.tar.gz Doxygen-def222ab7fa1ad9e51dff1b11b610c9e1e4af067.tar.bz2 |
issue #7228 Using markdown causes wrong error and warning line numbers - v. 1.8.16
Sacrificing some readability of the debug `-d markdown` output for a better approximation of the line numbers by keeping the rows of a markdown table on one line when translating to a HTML table.
Diffstat (limited to 'src')
-rw-r--r-- | src/markdown.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index 2cbdcb5..888f161 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -1828,7 +1828,7 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size) } - out.addStr("<table class=\"markdownTable\">\n"); + out.addStr("<table class=\"markdownTable\">"); QCString cellTag("th"), cellClass("class=\"markdownTableHead"); for (unsigned row = 0; row < tableContents.size(); row++) { @@ -1836,16 +1836,16 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size) { if (row % 2) { - out.addStr("<tr class=\"markdownTableRowOdd\">\n"); + out.addStr("<tr class=\"markdownTableRowOdd\">"); } else { - out.addStr("<tr class=\"markdownTableRowEven\">\n"); + out.addStr("<tr class=\"markdownTableRowEven\">"); } } else { - out.addStr(" <tr class=\"markdownTableHead\">\n"); + out.addStr(" <tr class=\"markdownTableHead\">"); } for (int c = 0; c < columns; c++) { @@ -1900,7 +1900,7 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size) } // need at least one space on either side of the cell text in // order for doxygen to do other formatting - out.addStr("> " + cellText + "\n</" + cellTag + ">\n"); + out.addStr("> " + cellText + "</" + cellTag + ">"); } cellTag = "td"; cellClass = "class=\"markdownTableBody"; |