Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -1237,7 +1237,8 @@ |
1238 | 1238 | |} |
1239 | 1239 | !! result |
1240 | 1240 | <table> |
1241 | | -<caption>caption</caption> |
| 1241 | +<caption>caption |
| 1242 | +</caption> |
1242 | 1243 | <tr><td></td></tr> |
1243 | 1244 | </table> |
1244 | 1245 | |
— | — | @@ -1290,7 +1291,8 @@ |
1291 | 1292 | |} |
1292 | 1293 | !! result |
1293 | 1294 | <table border="1" cellpadding="2"> |
1294 | | -<caption>Multiplication table</caption> |
| 1295 | +<caption>Multiplication table |
| 1296 | +</caption> |
1295 | 1297 | <thead> |
1296 | 1298 | <tr> |
1297 | 1299 | <th>×</th> |
— | — | @@ -1434,7 +1436,8 @@ |
1435 | 1437 | |} |
1436 | 1438 | !! result |
1437 | 1439 | <table> |
1438 | | -<caption><i>caption</i></caption> |
| 1440 | +<caption><i>caption</i> |
| 1441 | +</caption> |
1439 | 1442 | <tr> |
1440 | 1443 | <td>Cell</td> |
1441 | 1444 | </tr> |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1030,7 +1030,7 @@ |
1031 | 1031 | $return .= isset( $table['caption']['attributes'] ) ? $table['caption']['attributes'] : ''; |
1032 | 1032 | $return .= '>'; |
1033 | 1033 | $return .= $table['caption']['content']; |
1034 | | - $return .= '</caption>'; |
| 1034 | + $return .= "\n</caption>"; |
1035 | 1035 | } |
1036 | 1036 | $lastSection = ''; |
1037 | 1037 | $empty = true; |