mirror of
https://github.com/dlang/tools.git
synced 2025-04-25 12:40:21 +03:00
Have tolf add terminating newline
This commit is contained in:
parent
2e3b686601
commit
cdfc5b1090
1 changed files with 2 additions and 2 deletions
4
tolf.d
4
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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue