Amaury / SkrivMarkup

Interpreter of the Skriv Markup Language.
GNU Lesser General Public License v2.1
25 stars 3 forks source link

Bug with interpreting tables #20

Closed undera closed 11 years ago

undera commented 11 years ago

Hi,

I've met an issue trying to use your markup renderer with following wiki text: || Pragma || Value || || #summary || One-line summary of the page || || #labels || Comma-separated list of labels (filled in automatically via the web UI) ||

I have the error: PHP Error with code 2: strpos(): Offset not contained in string

Amaury commented 11 years ago

Hi,

Thank you for your report.

In fact, tables are not "bordered". So you don't need to write the extra double-pipes. I tried your example; without the "||" at the end of the lines, it works as it should.

But the parser shouldn't generate a PHP error in this case :-)

Regards,

Amaury

Amaury commented 11 years ago

Corrected by the last push.