Waseem etal,
I would like to modify Extension:StringFunctions to allow this.
This requested functionalit is useful in making it easier for users to edit/create information in infoblocks without having to remember to put in <br>
The end result would allow display (in a template) by using the extended parser function "replace"
Example:
{{#replace:{{{Input String}}}|\n|<br>}}
Details on how this would be done are at:
http://www.mediawiki.org/wiki/Extension_talk:StringFunctions#re:_Replacing_N ew_Lines.2C_Line_Breaks
Jack
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Waseem Sayegh Sent: Tuesday, August 25, 2009 8:15 AM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Replacing Newline
How can you replace a newline with a line break? I tried {{#replace:{{{1}}}|\n|<br />}} but it doesn't seem to be picking up the '\n' at all. Is there a way, or even a workaround? _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l