Merge pull request #6448 from jirutka/fix-5679-2
Fix #5679 again after recent changes in core
This commit is contained in:
commit
ec14b25e23
1 changed files with 2 additions and 3 deletions
|
@ -350,9 +350,8 @@ def main():
|
||||||
if ins_bef is None and ins_aft is None:
|
if ins_bef is None and ins_aft is None:
|
||||||
ins_aft = 'EOF'
|
ins_aft = 'EOF'
|
||||||
|
|
||||||
# Replace the newline character with an actual newline. Don't replace
|
# Replace the newline character with an actual newline.
|
||||||
# escaped \\n, hence sub and not str.replace.
|
line = params['line'].decode('string_escape')
|
||||||
line = re.sub(r'\n', os.linesep, params['line'])
|
|
||||||
|
|
||||||
present(module, dest, params['regexp'], line,
|
present(module, dest, params['regexp'], line,
|
||||||
ins_aft, ins_bef, create, backup, backrefs)
|
ins_aft, ins_bef, create, backup, backrefs)
|
||||||
|
|
Loading…
Reference in a new issue