From da8de63bca6bf7ef15aac197e85c86798bde76fc Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Fri, 12 Aug 2022 11:30:52 +0200 Subject: [PATCH] leaf-dirs: fix spurious newline at the end of output --- bin/leaf-dirs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/leaf-dirs b/bin/leaf-dirs index 90332f0..b90b3ba 100755 --- a/bin/leaf-dirs +++ b/bin/leaf-dirs @@ -38,4 +38,4 @@ if __name__ == "__main__": random.shuffle(outdirs) sep = "\0" if args.null else "\n" - print(sep.join(outdirs)) + print(sep.join(outdirs), end="" if args.null else "\n")