Wrent / dokuwiki-plugin-latexit

Repository of DokuWiki plugin latexit, which allows to export multiple DokuWiki pages in single LaTeX file.
3 stars 8 forks source link

Incorrect rowspan handling if multiple rowspans defined #33

Open britiger opened 9 years ago

britiger commented 9 years ago

There are a problem with the rowspan handling if I create a table with multiple rowspans.

Here is a example Wikicode:

^H1  ^H2 ^H3 |
| A1   | A2  | A3  |
| ::: | ::: | B3  |

latexit genereates for the second ine of content & B3 & \\, this should be & & B3 \\. You always have to modify the lines before you create a document. This causes no error using pdflatex.

If you have a 2nd table on your wikipage you get a double & & after the first header cell, this might be a undeleted value of the previous incorrect generated table. So if you have a 2 column table the first line will be defined with 3 columns which throws an error in latex.

britiger commented 9 years ago

A quick and diry solution for the second problem is to add $this->rowspan_handler = new RowspanHandler(); at the end of the function table_open() in renderer.php.