Strip strings after pygments, so we don’t include an needless newline.
This commit is contained in:
parent
2da9e35cbc
commit
9fbacf377a
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ def _get_highlight():
|
|||
def __init__(self, string):
|
||||
self.string = string
|
||||
def __str__(self):
|
||||
return highlight(str(self.string).strip(), LEXER, FORMATTER)
|
||||
return highlight(str(self.string), LEXER, FORMATTER).strip()
|
||||
|
||||
return Highlighter
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in a new issue