fix bug 963205 : text starting with space & ! or ? or : will be <pre>ed instead of space replaced by &nbsp;

This commit is contained in:
Antoine Musso 2004-05-30 18:36:33 +00:00
parent f9492166aa
commit 9dc65ef54e

View file

@ -106,7 +106,8 @@ class Parser
if(!$wgUseTidy) {
$fixtags = array(
# french spaces, last one Guillemet-left
"/ (\\?|:|!|\\302\\273)/i"=>"&nbsp;\\1",
# only if there is something before the space
"/(.) (\\?|:|!|\\302\\273)/i"=>"\\1&nbsp;\\2",
# french spaces, Guillemet-right
"/(\\302\\253) /i"=>"\\1&nbsp;",
"/<hr *>/i" => '<hr/>',