i18n: Fix issue with the bot sending the repr() of the string on IRC when translation has 'new line' characters in it.

This commit is contained in:
Valentin Lorentz 2012-04-17 11:45:25 +02:00
parent f51fbd0033
commit 9d6b132233
2 changed files with 3 additions and 2 deletions

View File

@ -213,7 +213,8 @@ class _PluginInternationalization:
def _unescape(self, string, removeNewline=False):
import supybot.utils as utils
string = str.replace(string, '\\n', '\n') # gettext escapes the \n
string = str.replace(string, '\\n\\n', '\n\n')
string = str.replace(string, '\\n', ' ')
string = str.replace(string, '\\"', '"')
string = str.replace(string, "\'", "'")
string = utils.str.normalizeWhitespace(string, removeNewline)

View File

@ -1,3 +1,3 @@
"""stick the various versioning attributes in here, so we only have to change
them once."""
version = '0.83.4.1+limnoria (2012-04-15T12:02:44+0000)'
version = '0.83.4.1+limnoria (2012-04-17T09:45:25+0000)'