On Mon, Jun 23, 2008 at 1:02 PM, Jim R. Wilson
<wilson.jim.r(a)gmail.com> wrote:
Joshua said:
In Widgets.php, it sounds like maybe you want to
replace:
return array($output, 'noparse' => true, 'isHTML' => true,
'noargs' => true);
It would be nice it that would work, but unfortunately, it's not the
silver bullet you might expect. MediaWiki inserts the aforementioned
newlines regardless of whether the parser function utilizes the
alternative array return type.
I have studied this problem in depth[1], and my standing
recommendation is to use the parser's insertStripItem() function
thusly:
return $parser->insertStripItem( $output, $parser->mStripState );
That's what I suggested! Based on your original example, of course. ;-)
Joshua
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org