From 32b4e2e3bc622f8ca7a4b75d36e45fc1ecdabfaa Mon Sep 17 00:00:00 2001 From: Emmanuel Odeke Date: Thu, 4 Feb 2016 00:43:49 -0800 Subject: [PATCH] src/list: strip trailing space from list Fixes #557. Strips unnecessary space from the end of the path. --- src/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/list.go b/src/list.go index 19709806..6e1f97a4 100644 --- a/src/list.go +++ b/src/list.go @@ -310,7 +310,7 @@ func (f *File) pretty(logy *log.Logger, opt attribute) { } if opt.minimal { - logy.Logf("%s ", fmtdPath) + logy.Logf("%s", fmtdPath) } else { if f.IsDir { logy.Logf("d") @@ -337,7 +337,7 @@ func (f *File) pretty(logy *log.Logger, opt attribute) { } if !opt.minimal { - logy.Logf(" %-10s\t%-10s\t\t%-20s\t%-50s\n", prettyBytes(f.Size), f.Id, f.ModTime, fmtdPath) + logy.Logf(" %-10s\t%-10s\t\t%-20s\t%-s\n", prettyBytes(f.Size), f.Id, f.ModTime, fmtdPath) } else { logy.Logln() }