fix bad logic
This commit is contained in:
parent
49f1cd3bcf
commit
0c5a736d0e
|
@ -328,8 +328,8 @@ def from_one_line(msg):
|
||||||
# to match the regexp that follows it
|
# to match the regexp that follows it
|
||||||
|
|
||||||
# So here match '\\n' but not if you have a '\' before that
|
# So here match '\\n' but not if you have a '\' before that
|
||||||
re = re.compile(r'(?<!\\)\\n')
|
expr = re.compile(r'(?<!\\)\\n')
|
||||||
msg = re.sub('\n', msg)
|
msg = expr.sub('\n', msg)
|
||||||
msg = msg.replace('\\\\', '\\')
|
msg = msg.replace('\\\\', '\\')
|
||||||
# s12 = 'test\\ntest\\\\ntest'
|
# s12 = 'test\\ntest\\\\ntest'
|
||||||
# s13 = re.sub('\n', s12)
|
# s13 = re.sub('\n', s12)
|
||||||
|
|
Loading…
Reference in New Issue