mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 18:49:22 +00:00
Correct whitespace around <syntaxhighlight> blocks
Remove trailing \n after closing </div>, as it results in multiple newlines that confuse the MediaWiki parser into generating <p><br></p> all over the place. Bug: T85794 Change-Id: Iffaa73b49c29e94d8a1a659dd40b845a9f4ce0c1
This commit is contained in:
parent
5b7522a5fc
commit
6a20c7f38d
|
@ -120,7 +120,7 @@ class SyntaxHighlight_GeSHi {
|
|||
// Register CSS
|
||||
$parser->getOutput()->addModuleStyles( 'ext.pygments' );
|
||||
|
||||
return $out;
|
||||
return trim( $out );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue