Oh ha! Sorry about that - I read down to the part about noparse/isHTML and started formulating my response.
My apologies buddy - teaches me to shoot first and read later :)
-- Jim
On Mon, Jun 23, 2008 at 12:39 PM, Joshua C. Lerner jlerner@gmail.com wrote:
On Mon, Jun 23, 2008 at 1:02 PM, Jim R. Wilson wilson.jim.r@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l