fix: escape new line character properly

This commit is contained in:
alistair3149 2024-06-23 16:37:11 -04:00
parent c33e2c6686
commit 7e92502c16
No known key found for this signature in database

View file

@ -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";
}
}