From 4a18c231f993520cb7e1ef86457ba4c8c959d6f0 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 26 May 2004 18:31:00 +0000 Subject: [PATCH] french spaces return --- includes/Parser.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/Parser.php b/includes/Parser.php index ef2f4940e0..2b2484cf19 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -105,6 +105,10 @@ class Parser # Clean up special characters, only run once, next-to-last before doBlockLevels if(!$wgUseTidy) { $fixtags = array( + # french spaces, last one Guillemet-left + "/ (\\?|:|!|\\302\\273)/i"=>' \\1', + # french spaces, Guillemet-right + "/\\302\\253 /i"=>'\\302\\253 ', "/
/i" => '
', "/
/i" => '
', "/
/i"=>'
', @@ -116,6 +120,10 @@ class Parser $text = preg_replace( array_keys($fixtags), array_values($fixtags), $text ); } else { $fixtags = array( + # french spaces, last one Guillemet-left + "/ (\\?|:|!|\\302\\273)/i"=>' \\1', + # french spaces, Guillemet-right + "/\\302\\253 /i"=>'\\302\\253 ', "/
/i"=>'
', "/<\\/center *>/i" => '
' ); -- 2.20.1