diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2013-05-19 12:23:25 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2013-05-19 12:23:25 (GMT) |
commit | 79099187058387c3d77bc33f46f02ee2315ef83d (patch) | |
tree | 83a30b06a24a934bb4120199cd0c180ece6fc1ed /src/markdown.cpp | |
parent | 8dc4ff6dd22b1603f33537ff03994cc63e658768 (diff) | |
download | Doxygen-79099187058387c3d77bc33f46f02ee2315ef83d.zip Doxygen-79099187058387c3d77bc33f46f02ee2315ef83d.tar.gz Doxygen-79099187058387c3d77bc33f46f02ee2315ef83d.tar.bz2 |
Release-1.8.4
Diffstat (limited to 'src/markdown.cpp')
-rw-r--r-- | src/markdown.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index c15516e..a3ac468 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -1466,19 +1466,20 @@ int findTableColumns(const char *data,int size,int &start,int &end,int &columns) // count columns between start and end columns=0; - if (n==2) // table row has | ... | - { - columns++; - } if (end>start) { i=start; while (i<=end) // look for more column markers { if (data[i]=='|' && (i==0 || data[i-1]!='\\')) columns++; + if (columns==1) columns++; // first | make a non-table into a two column table i++; } } + if (n==2 && columns==0) // table row has | ... | + { + columns++; + } //printf("findTableColumns(start=%d,end=%d,columns=%d) eol=%d\n", // start,end,columns,eol); return eol; |