Strip strings after pygments, so we don’t include an needless newline.
This commit is contained in:
parent
2da9e35cbc
commit
9fbacf377a
@ -174,7 +174,7 @@ def _get_highlight():
|
|||||||
def __init__(self, string):
|
def __init__(self, string):
|
||||||
self.string = string
|
self.string = string
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return highlight(str(self.string).strip(), LEXER, FORMATTER)
|
return highlight(str(self.string), LEXER, FORMATTER).strip()
|
||||||
|
|
||||||
return Highlighter
|
return Highlighter
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user