summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-07 22:59:50 +0100
committermathieui <mathieui@mathieui.net>2014-12-07 22:59:50 +0100
commit2e46a93215c535dcaba1282acb7424761cb6dfea (patch)
tree26007df698738f4f448055347296d041287a630a /src/core
parent148451c7747b380208938b45238c6f3536efd2bf (diff)
downloadpoezio-2e46a93215c535dcaba1282acb7424761cb6dfea.tar.gz
poezio-2e46a93215c535dcaba1282acb7424761cb6dfea.tar.bz2
poezio-2e46a93215c535dcaba1282acb7424761cb6dfea.tar.xz
poezio-2e46a93215c535dcaba1282acb7424761cb6dfea.zip
Don’t put newlines between xml stanzas in the xml tab
Diffstat (limited to 'src/core')
-rw-r--r--src/core/handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index 9ce50d42..6b613a93 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -1117,7 +1117,7 @@ def outgoing_stanza(self, stanza):
if self.xml_tab:
if PYGMENTS:
xhtml_text = highlight('%s' % stanza, LEXER, FORMATTER)
- poezio_colored = xhtml.xhtml_to_poezio_colors(xhtml_text, force=True)
+ poezio_colored = xhtml.xhtml_to_poezio_colors(xhtml_text, force=True).rstrip('\x19o').strip()
else:
poezio_colored = '%s' % stanza
self.add_message_to_text_buffer(self.xml_buffer, poezio_colored,
@@ -1140,7 +1140,7 @@ def incoming_stanza(self, stanza):
if self.xml_tab:
if PYGMENTS:
xhtml_text = highlight('%s' % stanza, LEXER, FORMATTER)
- poezio_colored = xhtml.xhtml_to_poezio_colors(xhtml_text, force=True)
+ poezio_colored = xhtml.xhtml_to_poezio_colors(xhtml_text, force=True).rstrip('\x19o').strip()
else:
poezio_colored = '%s' % stanza
self.add_message_to_text_buffer(self.xml_buffer, poezio_colored,