mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 21:22:39 +01:00
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:
parent
f51fbd0033
commit
9d6b132233
@ -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)
|
||||
|
@ -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)'
|
||||
|
Loading…
Reference in New Issue
Block a user