always add a trailing newline to the packages.json

This commit is contained in:
Araq 2015-08-19 01:50:47 +02:00
commit 9052f43a63

View file

@ -102,6 +102,8 @@ proc cleanupWhitespace(s: string): string =
else:
result.add s[i]
inc i
if result[^1] != '\L':
result.add '\L'
proc editJson(p: PackageInfo; url, tags, downloadMethod: string) =
var contents = parseFile("packages.json")