Don't ignore blank lines before a 'start ignoring' directive.

This commit is contained in:
Eric S. Raymond 2007-06-29 12:19:05 +00:00
parent 3908c56233
commit c75c529de8

View file

@ -84,6 +84,9 @@ def reindent(name, infp, outfp):
# Implement passthrough mode
if "wmlindent: start ignoring" in line:
ignoring = True
if countblanks > 0:
countblanks = 0
outfp.write("\n")
outfp.write(line)
continue
elif ignoring: