From e2b6e096d6ea9cf55943933f366bf3a3c84a5877 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 12 Jun 2006 05:46:33 +0000 Subject: [PATCH] HTML output normalization: remove extra space after class="thumbcaption" --- includes/Linker.php | 2 +- maintenance/parserTests.txt | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index 887edbebb1..416a940d73 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -648,7 +648,7 @@ class Linker { 'width="15" height="11" alt="'.$more.'" />'; } } - $s .= '
'.$zoomicon.$label."
"; + $s .= '
'.$zoomicon.$label."
"; return str_replace("\n", ' ', $s); } diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index d237fc6403..17ed07ab03 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -2157,7 +2157,7 @@ Template with thumb image (wiht link in description) {{paramtest| param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}} !! result -This is a test template with parameter
Image:Noimage.png
+This is a test template with parameter
Image:Noimage.png
!! end @@ -2704,7 +2704,7 @@ Image with frame and link !! input [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]] !! result -
This is a test image Main Page
This is a test image Main Page
+
This is a test image Main Page
This is a test image Main Page
!! end @@ -2733,7 +2733,7 @@ Thumbnail image caption with a free URL !! input [[Image:foobar.jpg|thumb|http://example.com]] !! result -
http://example.com
+
http://example.com
!! end @@ -2742,7 +2742,7 @@ BUG 1887: A ISBN with a thumbnail !! input [[Image:foobar.jpg|thumb|ISBN 12354]] !! result -
ISBN 12354
+
ISBN 12354
!! end @@ -2751,7 +2751,7 @@ BUG 1887: A RFC with a thumbnail !! input [[Image:foobar.jpg|thumb|This is RFC 12354]] !! result -
This is RFC 12354
Enlarge
This is RFC 12354
+
This is RFC 12354
Enlarge
This is RFC 12354
!! end @@ -2760,7 +2760,7 @@ BUG 1887: A mailto link with a thumbnail !! input [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]] !! result -
Please mailto:nobody@example.com
+
Please mailto:nobody@example.com
!! end @@ -2770,7 +2770,7 @@ so math is not stripped and turns up as escaped <math> tags. !! input [[Image:foobar.jpg|thumb|2+2]] !! result -
<math>2+2</math>
Enlarge
<math>2+2</math>
+
<math>2+2</math>
Enlarge
<math>2+2</math>
!! end @@ -2781,7 +2781,7 @@ math !! input [[Image:foobar.jpg|thumb|2+2]] !! result -
2 + 2
Enlarge
2 + 2
+
2 + 2
Enlarge
2 + 2
!! end @@ -2854,7 +2854,7 @@ Image caption containing another image !! input [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]] !! result -
This is a caption with another Image:Icon.png inside it!
Enlarge
This is a caption with another Image:Icon.png inside it!
+
This is a caption with another Image:Icon.png inside it!
Enlarge
This is a caption with another Image:Icon.png inside it!
!! end @@ -2874,7 +2874,7 @@ Bug 3090: External links other than http: in image captions !! input [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]] !! result -
This caption has irc and Secure ext links in it.
Enlarge
This caption has irc and Secure ext links in it.
+
This caption has irc and Secure ext links in it.
Enlarge
This caption has irc and Secure ext links in it.
!! end @@ -4444,7 +4444,7 @@ Fuzz testing: image with bogus manual thumbnail !!input [[Image:foobar.jpg|thumbnail= ]] !!result -
Enlarge
+
Enlarge
!!end -- 2.20.1