From cdfc5b1090bd3c79cdbcca18422f958a61174686 Mon Sep 17 00:00:00 2001 From: Jonathan Marler Date: Sat, 9 Nov 2019 20:20:04 -0700 Subject: [PATCH] Have tolf add terminating newline --- tolf.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tolf.d b/tolf.d index 03256b53c6..6353204390 100755 --- a/tolf.d +++ b/tolf.d @@ -7,12 +7,12 @@ /* Replace line endings with LF */ -import std.file, std.path, std.string; +import std.file, std.path, std.string, std.range; void main(string[] args) { foreach (f; args[1 .. $]) if (f.exists) - f.write(f.readText.lineSplitter.join('\n')); + f.write(f.readText.lineSplitter.chain([""]).join('\n')); }