correctly format messages

This commit is contained in:
Romain Bignon 2011-10-10 10:14:59 +02:00
commit 3ec65f7a55
2 changed files with 4 additions and 3 deletions

View file

@ -235,7 +235,7 @@ class AuMBrowser(BaseBrowser):
except KeyError:
new_content += c
content = new_content.replace('\n', '<br>').encode('Windows-1252', 'replace')
content = new_content.replace('\n', '\r\n').encode('Windows-1252', 'replace')
try:
self.api_request('message', 'new', data={'memberId': id, 'message': content})