diff options
-rw-r--r-- | src/markdown.cpp | 19 | ||||
-rw-r--r--[-rwxr-xr-x] | src/util.cpp | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | src/util.h | 0 |
3 files changed, 11 insertions, 8 deletions
diff --git a/src/markdown.cpp b/src/markdown.cpp index dee0045..67ceba2 100644 --- a/src/markdown.cpp +++ b/src/markdown.cpp @@ -37,7 +37,7 @@ #include <qfileinfo.h> #include <qdict.h> #include <qvector.h> -//#define USE_ORIGINAL_TABLES +#define USE_ORIGINAL_TABLES #include "markdown.h" #include "growbuf.h" @@ -1592,6 +1592,16 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size) i = findTableColumns(data,size,start,end,columns); +#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 int ret = findTableColumns(data+i,size-i,start,end,cc); k=0; @@ -1633,13 +1643,6 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size) i+=ret; #ifdef USE_ORIGINAL_TABLES - out.addStr("<table>"); - - // write table header, in range [start..end] - out.addStr("<tr>"); - - int headerStart = start; - int headerEnd = end; int m=headerStart; for (k=0;k<columns;k++) diff --git a/src/util.cpp b/src/util.cpp index 44f635e..44f635e 100755..100644 --- a/src/util.cpp +++ b/src/util.cpp diff --git a/src/util.h b/src/util.h index af8a3b4..af8a3b4 100755..100644 --- a/src/util.h +++ b/src/util.h |