From 9dc65ef54e5c9912de187592a163a9fe73213d6c Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 30 May 2004 18:36:33 +0000 Subject: [PATCH] fix bug 963205 : text starting with space & ! or ? or : will be
ed instead of space replaced by  

---
 includes/Parser.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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" => '
', -- 2.20.1