summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2010-05-03 21:33:21 +0200
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2010-05-03 21:33:21 +0200
commit3c6e4af83134ea09b7bc312641d1b27febd5ab0f (patch)
tree153956b49cf58ab5dec45d3d34e0ad24c2419c70
parent916c18ff9822a298d993d1956e4cf59d84a7540b (diff)
Fixes messages formating, newlines in messages now works.
-rw-r--r--sunshine/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunshine/connection.py b/sunshine/connection.py
index d9844b1..d7197d1 100644
--- a/sunshine/connection.py
+++ b/sunshine/connection.py
@@ -681,7 +681,7 @@ class SunshineConnection(telepathy.server.Connection,
if msg.content.html_message:
#we need to strip all html tags
- text = unescape(stripHTML(msg.content.html_message))
+ text = unescape(stripHTML(msg.content.html_message.replace('<br>', '\n')))
else:
text = unescape((msg.content.plain_message).decode('windows-1250'))