Follow up r85922 moving the </caption> to another line, fixing one of the tests added...
authorPlatonides <platonides@users.mediawiki.org>
Wed, 13 Apr 2011 23:19:27 +0000 (23:19 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 13 Apr 2011 23:19:27 +0000 (23:19 +0000)
includes/parser/Parser.php
tests/parser/parserTests.txt

index 4ad1a52..d6fac68 100644 (file)
@@ -1030,7 +1030,7 @@ class Parser {
                        $return .= isset( $table['caption']['attributes'] ) ? $table['caption']['attributes'] : '';
                        $return .= '>';
                        $return .= $table['caption']['content'];
-                       $return .= '</caption>';
+                       $return .= "\n</caption>";
                }
                $lastSection = '';
                $empty = true;
index 5824b2f..b8ca26a 100644 (file)
@@ -1237,7 +1237,8 @@ A table with nothing but a caption
 |}
 !! result
 <table>
-<caption>caption</caption>
+<caption>caption
+</caption>
 <tr><td></td></tr>
 </table>
 
@@ -1290,7 +1291,8 @@ Multiplication table
 |}
 !! result
 <table border="1" cellpadding="2">
-<caption>Multiplication table</caption>
+<caption>Multiplication table
+</caption>
 <thead>
 <tr>
 <th>&#215;</th>
@@ -1434,7 +1436,8 @@ A table with a caption with unclosed italic
 |}
 !! result
 <table>
-<caption><i>caption</i></caption>
+<caption><i>caption</i>
+</caption>
 <tr>
 <td>Cell</td>
 </tr>