r7878 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r7877‎ | r7878 | r7879 >
Date:02:50, 26 March 2005
Author:avar
Status:old
Tags:
Comment:
Indentation fix, there was a bit too much of it...
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -174,10 +174,10 @@
175175 $text = $this->internalParse( $text, $linestart );
176176
177177 $dashReplace = array(
178 - '/ - /' => " – ", # N dash
179 - '/(?<=[0-9])-(?=[0-9])/' => "&ndash;", # N dash between numbers
180 - '/ -- /' => "&nbsp;&mdash; " # M dash
181 - );
 178+ '/ - /' => "&nbsp;&ndash; ", # N dash
 179+ '/(?<=[0-9])-(?=[0-9])/' => "&ndash;", # N dash between numbers
 180+ '/ -- /' => "&nbsp;&mdash; " # M dash
 181+ );
182182 $text = preg_replace( array_keys($dashReplace), array_values($dashReplace), $text );
183183
184184

Status & tagging log