(bug 529, bug 12974) alter behaviour of the table- and template-parser:
authorHappy-melon <happy-melon@users.mediawiki.org>
Sun, 16 Jan 2011 23:57:13 +0000 (23:57 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sun, 16 Jan 2011 23:57:13 +0000 (23:57 +0000)
commit2d8ee839cb13d922731473ddc1d06e32e84b9bda
treebbea8974b76f000b1c9dbf99d796c962be5ec92b
parent12d0cb6aa301dbbc01c7c6432ca96f2165ac3c46
(bug 529, bug 12974) alter behaviour of the table- and template-parser:
* Remove the hack from bug 529 which inserts a newline when the template text begins with any block character; this breaks many things in many exciting ways.  I've left it in for now when the text begins with a wikitable, as that markup can't be mistaken for anything else.
* Instead, move the contents of a table cell onto a new line for parsing, so that linestart elements (including nested tables) will parse as normal.

This means that structures like

{|
| {{template-containing-wikilist}}
|}

Will still work, but for the right reason, and structures like

{|
| style="color:{{template-containing-hexcode}}" | Foo
| * Bar
| {|
   | Look at me, I'm nested!
  |}
|}

Will all now start to work.  Structures like

* Foo {{template-containing-wikilist}}

Will now not, but honestly, should they?
RELEASE-NOTES
includes/parser/Parser.php
tests/parser/parserTests.txt