summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-06-10 08:57:12 (GMT)
committerGitHub <noreply@github.com>2018-06-10 08:57:12 (GMT)
commit7a5e7e2ffecd0df3c9bedaba01fe4f316a49a55b (patch)
tree784aefc517a7152b7dc4177de60b963eb8f0da8a /src
parent55c4d43e0f7b42b709071b0dd6664ca3a4d26f00 (diff)
parentefcc4d035e4ecdb3ecc449770a5fd26694717efa (diff)
downloadDoxygen-7a5e7e2ffecd0df3c9bedaba01fe4f316a49a55b.zip
Doxygen-7a5e7e2ffecd0df3c9bedaba01fe4f316a49a55b.tar.gz
Doxygen-7a5e7e2ffecd0df3c9bedaba01fe4f316a49a55b.tar.bz2
Merge pull request #749 from albert-github/feature/bug_792918
BugĀ 792918 - incorrect parsing of markdown table
Diffstat (limited to 'src')
-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);