blockinfile will always add newline at EOF (#2261)

reviewable/pr18780/r1
Hans-Joachim Kliemeck 9 years ago committed by René Moser
parent 33f3612e5c
commit 896f6dcd34

@ -280,7 +280,9 @@ def main():
lines[n0:n0] = blocklines
if lines:
result = '\n'.join(lines)+'\n'
result = '\n'.join(lines)
if original.endswith('\n'):
result += '\n'
else:
result = ''
if original == result:

Loading…
Cancel
Save