Skip to content
Snippets Groups Projects
Commit 0c5a736d authored by nkour's avatar nkour
Browse files

fix bad logic

parent 49f1cd3b
No related branches found
No related tags found
No related merge requests found
......@@ -328,8 +328,8 @@ def from_one_line(msg):
# to match the regexp that follows it
# So here match '\\n' but not if you have a '\' before that
re = re.compile(r'(?<!\\)\\n')
msg = re.sub('\n', msg)
expr = re.compile(r'(?<!\\)\\n')
msg = expr.sub('\n', msg)
msg = msg.replace('\\\\', '\\')
# s12 = 'test\\ntest\\\\ntest'
# s13 = re.sub('\n', s12)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment