r45671 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45670‎ | r45671 | r45672 >
Date:07:45, 12 January 2009
Author:krimpet
Status:reverted (Comments)
Tags:
Comment:
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -327,6 +327,12 @@
328328 $text = $this->internalParse( $text );
329329 $text = $this->mStripState->unstripGeneral( $text );
330330
 331+ # To make wikitext easier to read where significant
 332+ # whitespace is a problem, '__\' will be eaten up along with
 333+ # all whitespace and newlines that follow it, up to the next
 334+ # non-whitespace character. (Compare 'dnl' from m4.)
 335+ $text = preg_replace('/__\\\\\s*/', '', $text);
 336+
331337 # Clean up special characters, only run once, next-to-last before doBlockLevels
332338 $fixtags = array(
333339 # french spaces, last one Guillemet-left
Index: trunk/phase3/RELEASE-NOTES
@@ -31,6 +31,9 @@
3232 passing "uploadmsg" parameter in the url
3333 * (bug 9947) Add PROTECTIONLEVEL parser funtion to return the protection level
3434 for the current page for a given action
 35+* Added "__\" magic word to eat up all whitespace and newlines to the next
 36+ non-whitespace character, to facilitate writing readable template code where
 37+ whitespace is significant.
3538
3639 === Bug fixes in 1.15 ===
3740 * Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class)

Follow-up revisions

RevisionCommit summaryAuthorDate
r45672Comment that should've accompanied r45671 (*shakes fist at TortoiseSVN*):...krimpet07:50, 12 January 2009
r45743Revert r45671 "Added "__\" magic word to eat up all whitespace and newlines t...brion19:41, 14 January 2009

Comments

#Comment by 😂 (talk | contribs)   13:53, 12 January 2009

Parser Tests for this?

#Comment by Brion VIBBER (talk | contribs)   19:41, 14 January 2009

Unplanned syntax change. Reverted in r45743

Status & tagging log