From a5ac8a50c217d26f1dabffcc7cdb20c48392b3ff Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 12 Jun 2006 06:04:51 +0000 Subject: [PATCH] HTML normalization: use double-quotes on RFC and PMID quotes for consistency with upcoming normalizer's output --- includes/Parser.php | 2 +- maintenance/parserTests.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 60aaaedc8a..f7e5f50bd7 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3549,7 +3549,7 @@ class Parser $url = wfMsg( $urlmsg, $id); $sk =& $this->mOptions->getSkin(); $la = $sk->getExternalLinkAttributes( $url, $keyword.$id ); - $text .= "{$keyword}{$id}{$x}"; + $text .= "{$keyword}{$id}{$x}"; } /* Check if the next RFC keyword is preceed by [[ */ diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 17ed07ab03..2a06b53394 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1944,7 +1944,7 @@ Magic links: RFC (bug 479) !! input RFC 822 !! result -

RFC 822 +

RFC 822

!! end @@ -1962,7 +1962,7 @@ Magic links: PMID incorrectly converts space to underscore !! input PMID 1234 !! result -

PMID 1234 +

PMID 1234

!! 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 -- 2.20.1