Project

Profile

Help

Revision 96664dff

Added by Vincent Le Goff about 3 years ago

Fix the bug, but doesn't handle well other encodings yet

View differences:

src/client.py
216 216
        encoding = settings["options.general.encoding"]
217 217
        if stacking:
218 218
            delimiter = re.escape(stacking)
219
            re_stacking = "(?<!{s}){s}(?!{s})".format(s=delimiter)
219
            re_stacking = u"(?<!{s}){s}(?!{s})".format(s=delimiter)
220 220
            re_del = re.compile(re_stacking, re.UNICODE)
221 221
            chunks = re_del.split(text)
222 222

  

Also available in: Unified diff