summaryrefslogtreecommitdiffstats
path: root/src/markdown.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-05-29 09:29:30 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-05-29 09:29:30 (GMT)
commitefcc4d035e4ecdb3ecc449770a5fd26694717efa (patch)
tree7ef03078092f22c1a7861e54295b984cec7c5b54 /src/markdown.cpp
parent63696c08425fc1662c5e76280e3cc74fb3769d80 (diff)
downloadDoxygen-efcc4d035e4ecdb3ecc449770a5fd26694717efa.zip
Doxygen-efcc4d035e4ecdb3ecc449770a5fd26694717efa.tar.gz
Doxygen-efcc4d035e4ecdb3ecc449770a5fd26694717efa.tar.bz2
BugĀ 792918 - incorrect parsing of markdown table
Problem due to the fact that for the display of the header line the size of the separator line was used. The headerStart and headerEnd have to be set before the next call to 'findTableColumns' Related to: - pull request 537 Add support for more CSS and column/row spanning in markdown tables - pull request 542 Reverting pull request #537 until it will be fixed - commit on 16/09/2017: New table features mentioned in the documentation were not enabled.
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r--src/markdown.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp
index f7526dc..f5c0dfd 100644
--- a/src/markdown.cpp
+++ b/src/markdown.cpp
@@ -1590,15 +1590,15 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size)
int columns,start,end,cc;
i = findTableColumns(data,size,start,end,columns);
-
+
+ int headerStart = start;
+ int headerEnd = end;
+
#ifdef USE_ORIGINAL_TABLES
out.addStr("<table>");
// write table header, in range [start..end]
out.addStr("<tr>");
-
- int headerStart = start;
- int headerEnd = end;
#endif
// read cell alignments
@@ -1712,9 +1712,6 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size)
QVector<QVector<TableCell> > tableContents;
tableContents.setAutoDelete(TRUE);
- int headerStart = start;
- int headerEnd = end;
-
int m=headerStart;
QVector<TableCell> *headerContents = new QVector<TableCell>(columns);
headerContents->setAutoDelete(TRUE);