r24211 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24210‎ | r24211 | r24212 >
Date:20:24, 17 July 2007
Author:brion
Status:old
Tags:
Comment:
bug 10517 -- strip newlines in the wikihiero HTML to avoid breaking line-based block passes in the wiki parser such as lists
Modified paths:
  • /trunk/extensions/wikihiero/wh_main.php (modified) (history)

Diff [purge]

Index: trunk/extensions/wikihiero/wh_main.php
@@ -581,7 +581,10 @@
582582 // return >> string with converted code
583583 //------------------------------------------------------------------------
584584 function WikiHieroHook($hiero) {
585 - return _WikiHiero($hiero, WH_MODE_HTML);
 585+ $ret = _WikiHiero($hiero, WH_MODE_HTML);
 586+
 587+ // Strip newlines to avoid breakage in the wiki parser block pass
 588+ return str_replace( "\n", " ", $ret );
586589 }
587590
588591 //========================================================================

Status & tagging log