mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-09-23 10:26:50 +00:00
fix: escape new line character properly
This commit is contained in:
parent
c33e2c6686
commit
7e92502c16
|
@ -114,7 +114,7 @@ class Tabber {
|
|||
|
||||
$tabName = trim( $tabName );
|
||||
// Fix #151
|
||||
$tabBody = '\n' . trim( $tabBody );
|
||||
$tabBody = "\n" . trim( $tabBody );
|
||||
|
||||
// Codex mode
|
||||
if ( self::$useCodex ) {
|
||||
|
@ -157,6 +157,6 @@ class Tabber {
|
|||
|
||||
// \n is needed for #151
|
||||
return '<article class="tabber__panel" data-mw-tabber-title="' . $tabName .
|
||||
'">' . $tabBody . '</article>\n';
|
||||
'">' . $tabBody . "</article>\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue