mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-23 16:06:45 +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 = trim( $tabName );
|
||||
$tabBody = trim( $tabBody );
|
||||
// Fix #151
|
||||
$tabBody = '\n' . trim( $tabBody );
|
||||
|
||||
// Codex mode
|
||||
if ( self::$useCodex ) {
|
||||
|
@ -154,7 +155,8 @@ class Tabber {
|
|||
$tabBody = '<p>' . $tabBody . '</p>';
|
||||
}
|
||||
|
||||
// \n is needed for #151
|
||||
return '<article class="tabber__panel" data-mw-tabber-title="' . $tabName .
|
||||
'">' . $tabBody . '</article>';
|
||||
'">' . $tabBody . '</article>\n';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue