From def222ab7fa1ad9e51dff1b11b610c9e1e4af067 Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 27 Aug 2019 19:06:59 +0200 Subject: 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. --- src/markdown.cpp | 10 +++++----- 1 file 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("\n"); + out.addStr("
"); 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("\n"); + out.addStr(""); } else { - out.addStr("\n"); + out.addStr(""); } } else { - out.addStr(" \n"); + out.addStr(" "); } 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\n"); + out.addStr("> " + cellText + ""); } cellTag = "td"; cellClass = "class=\"markdownTableBody"; -- cgit v0.12