Skip to content

Commit fd67ef1

Browse files
committed
Reverting pull request doxygen#537 until it will be fixed
Unfortunately code to support column/row spanning in markdown tables breaking latex/pdf generation in case of utf8 symbols in table headers (at least) Attempt to define USE_ORIGINAL_TABLES did not help, as important part of the code was moved to the wrong place, so this patch reverts original tables code while keeping span support in place for debugging/fixing. Just undefine USE_ORIGINAL_TABLES to enable span support.
1 parent 16d5703 commit fd67ef1

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/markdown.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include <qfileinfo.h>
3838
#include <qdict.h>
3939
#include <qvector.h>
40-
//#define USE_ORIGINAL_TABLES
40+
#define USE_ORIGINAL_TABLES
4141

4242
#include "markdown.h"
4343
#include "growbuf.h"
@@ -1592,6 +1592,16 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size)
15921592

15931593
i = findTableColumns(data,size,start,end,columns);
15941594

1595+
#ifdef USE_ORIGINAL_TABLES
1596+
out.addStr("<table>");
1597+
1598+
// write table header, in range [start..end]
1599+
out.addStr("<tr>");
1600+
1601+
int headerStart = start;
1602+
int headerEnd = end;
1603+
#endif
1604+
15951605
// read cell alignments
15961606
int ret = findTableColumns(data+i,size-i,start,end,cc);
15971607
k=0;
@@ -1633,13 +1643,6 @@ static int writeTableBlock(GrowBuf &out,const char *data,int size)
16331643
i+=ret;
16341644

16351645
#ifdef USE_ORIGINAL_TABLES
1636-
out.addStr("<table>");
1637-
1638-
// write table header, in range [start..end]
1639-
out.addStr("<tr>");
1640-
1641-
int headerStart = start;
1642-
int headerEnd = end;
16431646

16441647
int m=headerStart;
16451648
for (k=0;k<columns;k++)

0 commit comments

Comments
 (0)