Harjotsingh has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/332037 )
Change subject: Convert space after § to non-breaking spaces ...................................................................... Convert space after § to non-breaking spaces Bug: T119463 Change-Id: I2b68849bcacbc356cafa2a35cf570379284fef4f --- M includes/parser/Parser.php M tests/parser/parserTests.txt 2 files changed, 9 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/37/332037/1 diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 79fc172..9fedff4 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1339,6 +1339,7 @@ '/(.) (?=\\?|:|;|!|%|\\302\\273)/' => '\\1 ', # french spaces, Guillemet-right '/(\\302\\253) /' => '\\1 ', + '/(§) (.)/' => '§ ', # Bug T119463 '/ (!\s*important)/' => ' \\1', # Beware of CSS magic word !important, T13874. ]; $text = preg_replace( array_keys( $fixtags ), array_values( $fixtags ), $text ); diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 3853a12..9ca617a 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2406,6 +2406,14 @@ !! end !! test +Non-breaking spaces after § +!! wikitext +U.S § 152 +!! html +U.S § 152 +!! end + +!! test HTML pre followed by indent-pre !! wikitext <pre>foo</pre> -- To view, visit https://gerrit.wikimedia.org/r/332037 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2b68849bcacbc356cafa2a35cf570379284fef4f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Harjotsingh <harjo...@ymail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits