1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Add blank line at bottom of .reg files we generate

The specification at http://support.microsoft.com/kb/310516 says .reg
files should have a blank line at the end.
This commit is contained in:
Owen Dunn 2017-03-17 10:11:20 +00:00
parent 687efc3a5d
commit 142a458fee

View File

@ -257,3 +257,14 @@ for line in fileinput.input(args):
warn("trouble parsing key (%s), skipping" % k.msg)
except BlankInputLine:
pass
# The spec at http://support.microsoft.com/kb/310516 says we need
# a blank line at the end of the reg file:
#
# Note the registry file should contain a blank line at the
# bottom of the file.
#
if output_type == 'windows':
# Output REG file header.
sys.stdout.write("\n")