cosmocode / edittable

Plugin to provide a custom editor for tables in DokuWiki
https://www.dokuwiki.org/plugin:edittable
32 stars 26 forks source link

EditTable and the DataTables Plugin -> Table Headers #104

Closed LP2465 closed 8 years ago

LP2465 commented 8 years ago

IMHO, the EditTable plugin is mishandling table headings, which results in DataTables not understanding the table correctly.

Original table using the DataTables Plugin:

^ ^ This is the main title line ^^^ ^ ^ Subtitle #1 ^ Subtitle #2 ^ Subtitle #3 ^ ^ 1 | Row A2 | Row B2 | Row C2 | ^ 2 | Row A3 | Row B3 | Row C3 |

After editing the table with EditTable:

^ ^ This is the main title line ||| ^ ^ Subtitle #1 ^ Subtitle #2 ^ Subtitle #3 ^ ^ 1 | Row A2 | Row B2 | Row C2 | ^ 2 | Row A3 | Row B3 | Row C3 | ^ | new | | |
splitbrain commented 8 years ago

The final closing element can be a ^ or a | it does not influence the output and DokuWiki accepts both. So if another plugin fails to parse a valid DokuWiki table I'd argue that other plugin needs to be fixed.