PiRSquared17 / wiki2latex

Automatically exported from code.google.com/p/wiki2latex
0 stars 0 forks source link

Recursive Tag parsing sometimes triggers table-code where it should not (was: W2L throws a Notice in Table-code) #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using this footnote causes an php-notice:

<ref>!!!</ref>

Parsing this footnote triggers some table-code, which then throws the notice:

Notice: Undefined offset: 0 in
/var/web/studium/extensions/w2l/w2lParser.php on line 1497

Original issue reported on code.google.com by hansgeorg.kluge@gmail.com on 30 Jan 2009 at 7:33

GoogleCodeExporter commented 9 years ago

Original comment by hansgeorg.kluge@gmail.com on 18 Feb 2009 at 9:32

GoogleCodeExporter commented 9 years ago
I corrected this problem. It might occur in other instances, so I leave it open 
for now.

Original comment by hansgeorg.kluge@gmail.com on 26 Aug 2010 at 9:31

GoogleCodeExporter commented 9 years ago

Original comment by hansgeorg.kluge@gmail.com on 26 Aug 2010 at 9:36

GoogleCodeExporter commented 9 years ago
Now table code is only triggered, when there really is a table in the string. 
Still no perfect solution, though :(

Original comment by hansgeorg.kluge@gmail.com on 28 Aug 2010 at 11:04

GoogleCodeExporter commented 9 years ago
This big is also triggered by a simple line containing plain "!!!"

Original comment by hansgeorg.kluge@gmail.com on 29 Aug 2010 at 8:44

GoogleCodeExporter commented 9 years ago
Added a check, if we are in a table at all. This fixes the problem in a small 
test I created. Hope it works in other instances, too.

Original comment by hansgeorg.kluge@gmail.com on 29 Aug 2010 at 8:52