From 887f4eff8200b93e8fed602f955cf036de067f95 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 13 Apr 2011 23:19:27 +0000 Subject: [PATCH] Follow up r85922 moving the to another line, fixing one of the tests added in r86004. --- includes/parser/Parser.php | 2 +- tests/parser/parserTests.txt | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 4ad1a52162..d6fac6892b 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1030,7 +1030,7 @@ class Parser { $return .= isset( $table['caption']['attributes'] ) ? $table['caption']['attributes'] : ''; $return .= '>'; $return .= $table['caption']['content']; - $return .= ''; + $return .= "\n"; } $lastSection = ''; $empty = true; diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 5824b2fed9..b8ca26a689 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -1237,7 +1237,8 @@ A table with nothing but a caption |} !! result - +
captioncaption +
@@ -1290,7 +1291,8 @@ Multiplication table |} !! result - + @@ -1434,7 +1436,8 @@ A table with a caption with unclosed italic |} !! result
Multiplication tableMultiplication table +
×
- + -- 2.20.1
captioncaption +
Cell