https://bugzilla.wikimedia.org/show_bug.cgi?id=51190
Web browser: ---
Bug ID: 51190
Summary: [WikiForum] Added capability to recognize single line
breaks
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: [other]
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Mobile Platform: ---
I have figured out a way to allow single line breaks made in the text editor to
be interpreted as such.
With current functionality, you must include a <br> tag or make two line breaks
to have it appears as a single line break.
Changes made:
In WikiForumClass.php:
function parseIt( $text ) {
// included $wgWikiForumAllowSingleLine from LocalSettings.php
global $wgOut, $wgWikiForumAllowSingleLine;
// add smilies for reply text
$text = $this->prepareSmilies( $text );
//changes start here
if($wgWikiForumAllowSingleLine)
{
$text = nl2br($text);
}
//changes stop here
$text = $wgOut->parse( $text );
$text = $this->parseLinks( $text );
Then from LocalSetttings.php if
$wgWikiForumAllowSingleLine = true; // then single line breaks display as a
single line
$wgWikiForumAllowSingleLine = false; // then single line breaks display as
multiple lines.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l