Ignore lonely wiki text '''''. Fix a parser test.
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 13 Mar 2007 18:09:20 +0000 (18:09 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 13 Mar 2007 18:09:20 +0000 (18:09 +0000)
RELEASE-NOTES
includes/Parser.php
maintenance/parserTests.txt

index 795c1a4..c29fa0d 100644 (file)
@@ -266,6 +266,7 @@ lighter making things easier to read.
 * (bug 1196) Add IPv6 support to blocks
 * Make Special:Listusers caseinsensitive for first letter
 * Default tidy.conf has been moved from extensions module into includes.
+* Ignore lonely '''''
 
 
 == Languages updated ==
index 14d45bd..b5f984c 100644 (file)
@@ -1285,7 +1285,8 @@ class Parser
                                $output .= '</i>';
                        if ($state == 'bi')
                                $output .= '</b>';
-                       if ($state == 'both')
+                       # There might be lonely ''''', so make sure we have a buffer
+                       if ($state == 'both' && $buffer)
                                $output .= '<b><i>'.$buffer.'</i></b>';
                        return $output;
                }
index 4ddaac2..1e862d1 100644 (file)
@@ -5770,7 +5770,7 @@ Handling of &#x0A; in URLs
 !!end
 
 !! test
-TODO: 5 quotes, code coverage +1 line
+5 quotes, code coverage +1 line
 !! input
 '''''
 !! result