r18402 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r18401‎ | r18402 | r18403 >
Date:15:53, 17 December 2006
Author:vyznev
Status:old
Tags:
Comment:
Parser test for bug 8293: Use of center tag ruins paragraph formatting.
No idea what's causing this, looks like the parser just gives up when it
sees </center> on a line of its own and spits the rest out verbatim.
Modified paths:
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -6108,6 +6108,28 @@
61096109 !! end
61106110
61116111
 6112+!! test
 6113+Bug 8293: Use of center tag ruins paragraph formatting
 6114+!! input
 6115+<center>
 6116+foo
 6117+</center>
 6118+
 6119+bar
 6120+
 6121+ baz
 6122+!! result
 6123+<center>
 6124+<p>foo
 6125+</p>
 6126+</center>
 6127+<p>bar
 6128+</p>
 6129+<pre>baz
 6130+</pre>
 6131+!! end
 6132+
 6133+
61126134 #
61136135 #
61146136 #

Follow-up revisions

RevisionCommit summaryAuthorDate
r18403Change the regexen in doBlockLevels() to handle <center> tags the same as...vyznev16:51, 17 December 2006