From 9fbacf377a8aa53ef2d74a8a560b2a2f96d0ee22 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 8 Aug 2015 15:40:30 +0100 Subject: =?UTF-8?q?Strip=20strings=20after=20pygments,=20so=20we=20don?= =?UTF-8?q?=E2=80=99t=20include=20an=20needless=20newline.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- slixmpp/xmlstream/tostring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3