diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-08-08 15:40:30 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-08-08 17:34:06 +0200 |
commit | 9fbacf377a8aa53ef2d74a8a560b2a2f96d0ee22 (patch) | |
tree | 9ab57b08dbb56294dc6dd7ca340b225ba744e979 | |
parent | 2da9e35cbc7f61a30dce5e2df05057558be63de5 (diff) | |
download | slixmpp-9fbacf377a8aa53ef2d74a8a560b2a2f96d0ee22.tar.gz slixmpp-9fbacf377a8aa53ef2d74a8a560b2a2f96d0ee22.tar.bz2 slixmpp-9fbacf377a8aa53ef2d74a8a560b2a2f96d0ee22.tar.xz slixmpp-9fbacf377a8aa53ef2d74a8a560b2a2f96d0ee22.zip |
Strip strings after pygments, so we don’t include an needless newline.
-rw-r--r-- | slixmpp/xmlstream/tostring.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/tostring.py b/slixmpp/xmlstream/tostring.py index 041346cb..6726bf1e 100644 --- a/slixmpp/xmlstream/tostring.py +++ b/slixmpp/xmlstream/tostring.py @@ -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: |