Hi,
Result of my parser function is displayed in an odd way: it is surrounded by extra whitespace created by </br> and empty <p> tags.
Is there a way to suppress those? These empty html elements sometimes make it difficult to make pages look good.
Thank you!
Evgeny.
Hoi, Particularly line breaks are added to make a text look good. The question what looks good is arbitrary. It may be that some of such are added at a stage when the parser did not produce the best results, but it does not mean that they were added to make a text look good. Thanks, GerardM
On Mon, Sep 29, 2008 at 11:18 PM, Evgeny Fadeev fadeev@rocketmail.comwrote:
Hi,
Result of my parser function is displayed in an odd way: it is surrounded by extra whitespace created by </br> and empty <p> tags.
Is there a way to suppress those? These empty html elements sometimes make it difficult to make pages look good.
Thank you!
Evgeny.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Mon, Sep 29, 2008 at 11:18 PM, Evgeny Fadeev fadeev@rocketmail.comwrote:
Hi,
Result of my parser function is displayed in an odd way: it is surrounded by extra whitespace created by </br> and empty <p> tags.
Is there a way to suppress those? These empty html elements sometimes make it difficult to make pages look good.
Thank you!
Evgeny.
_______________________________________________
Hi E,
I'm guessing you use the parse() function right? If you use the one with the two Booleans at the end set the Boolean right after parseroptions to false. This will get rid of your endlines. http://www.mediawiki.org/wiki/Manual:Tag_extensions#Before_version_1.8 Or you could use the recursive tag parse, which should return a string.
Good luck! -Courtney
wikitech-l@lists.wikimedia.org