mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-27 17:50:55 +00:00
fix: add new lines to parsed tab content to ensure content are parsed as expected
Fixes: #151
This commit is contained in:
parent
ee54cc1bb3
commit
f4f8b4bfce
|
@ -113,7 +113,8 @@ class Tabber {
|
||||||
[ $tabName, $tabBody ] = array_pad( explode( '=', $tab, 2 ), 2, '' );
|
[ $tabName, $tabBody ] = array_pad( explode( '=', $tab, 2 ), 2, '' );
|
||||||
|
|
||||||
$tabName = trim( $tabName );
|
$tabName = trim( $tabName );
|
||||||
$tabBody = trim( $tabBody );
|
// Fix #151
|
||||||
|
$tabBody = '\n' . trim( $tabBody );
|
||||||
|
|
||||||
// Codex mode
|
// Codex mode
|
||||||
if ( self::$useCodex ) {
|
if ( self::$useCodex ) {
|
||||||
|
@ -154,7 +155,8 @@ class Tabber {
|
||||||
$tabBody = '<p>' . $tabBody . '</p>';
|
$tabBody = '<p>' . $tabBody . '</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// \n is needed for #151
|
||||||
return '<article class="tabber__panel" data-mw-tabber-title="' . $tabName .
|
return '<article class="tabber__panel" data-mw-tabber-title="' . $tabName .
|
||||||
'">' . $tabBody . '</article>';
|
'">' . $tabBody . '</article>\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue