commit 9ba9f604de5c56574755a5fb5ca58de81ca4a399
parent 78c2937ea1f19177c930b0f3c3ca941e07bc9c64
Author: Friedel Schön <[email protected]>
Date: Wed, 26 Oct 2022 13:16:13 +0200
fixing newline-issue
Diffstat:
2 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/src/main.d b/src/main.d
@@ -2,15 +2,7 @@
module importsort.main;
-import core.stdc.stdlib : exit;
-import importsort.sort : Import, SortConfig, sortImports;
-import std.array : replace;
-import std.conv : ConvException, parse;
-import std.file : DirEntry, SpanMode, dirEntries, exists, isDir, isFile;
-import std.functional : unaryFun;
-import std.stdio : File, stderr, stdin, stdout;
-import std.string : endsWith;
-
+import core.stdc.stdlib : exit;import importsort.sort : Import, SortConfig, sortImports;import std.array : replace;import std.conv : ConvException, parse;import std.file : DirEntry, SpanMode, dirEntries, exists, isDir, isFile;import std.functional : unaryFun;import std.stdio : File, stderr, stdin, stdout;import std.string : endsWith;
/// name of binary (for help)
enum BINARY = "importsort-d";
diff --git a/src/sort.d b/src/sort.d
@@ -139,7 +139,7 @@ void writeImports(File outfile, SortConfig config, Import[] matches) {
outfile.write(begin ~ ident.original);
}
}
- outfile.writef(";", m.end);
+ outfile.writef(";%s", m.end);
}
}
}