Another little feature, is the table row token is the regexp |-+

So

{|
|-------------------------
| foo
|}

{|
|-
| food
|}

are equivalent 

 Jared

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Steve Bennett
> Sent: 04 February 2008 13:02
> To: Wikitext-l
> Subject: Re: [Wikitext-l] So, the hardest wikitext construct to parse?
> 
> On 2/4/08, Jared Williams <[EMAIL PROTECTED]> wrote:
> > Have you also noticed the evil trim() in doTableStuff() ?
> > Right before it starts to parse the line. Means have to 
> lookahead if a 
> > line starts with whitespace or NUL.
> 
> Ouch, that's almost obnoxious. I just tried it, and sure 
> enough, this kind of thing works:
> 
>                           {|
>          |-
>                                |         fooooo
>      |}
> 
> 
> This looks like an example where being too permissive is 
> actually harmful. There's no real benefit in being able to 
> left-indent the table and no one does it.
> 
> Another interesting aspect of table parsing that I've noticed 
> is that malformed tables often disappear, rather than being 
> rendered literally. I think we decided that a replacement 
> parser doesn't have to mimic the current one on malformed 
> input but there are still issues to consider...
> 
> Steve
> 
> _______________________________________________
> Wikitext-l mailing list
> [email protected]
> http://lists.wikimedia.org/mailman/listinfo/wikitext-l


_______________________________________________
Wikitext-l mailing list
[email protected]
http://lists.wikimedia.org/mailman/listinfo/wikitext-l

Reply via email to