From: Antoine Musso Date: Sun, 30 May 2004 18:36:33 +0000 (+0000) Subject: fix bug 963205 : text starting with space & ! or ? or : will be
ed instead of... 
X-Git-Tag: 1.5.0alpha1~3133
X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=9dc65ef54e5c9912de187592a163a9fe73213d6c;p=lhc%2Fweb%2Fwiklou.git

fix bug 963205 : text starting with space & ! or ? or : will be 
ed instead of space replaced by  
---

diff --git a/includes/Parser.php b/includes/Parser.php
index ebddd60c24..f0f9897758 100644
--- a/includes/Parser.php
+++ b/includes/Parser.php
@@ -106,7 +106,8 @@ class Parser
 		if(!$wgUseTidy) {
 			$fixtags = array(
 				# french spaces, last one Guillemet-left
-				"/ (\\?|:|!|\\302\\273)/i"=>" \\1", 
+				# only if there is something before the space
+				"/(.) (\\?|:|!|\\302\\273)/i"=>"\\1 \\2", 
 				# french spaces, Guillemet-right
 				"/(\\302\\253) /i"=>"\\1 ", 
 				"/
/i" => '
',