Skip to content

Commit f4e3f76

Browse files
committed
Make padding more consistent with standard ls -l.
1 parent 6b3b439 commit f4e3f76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

format/long.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ func Long(nodes []node.Node) {
2323
values[i] = []string{
2424
formatMode(node.Mode),
2525
strconv.Itoa(node.LinkCount),
26-
node.User,
27-
node.Group,
26+
fmt.Sprintf("%s ", node.User),
27+
fmt.Sprintf("%s ", node.Group),
2828
strconv.Itoa(node.Size),
2929
node.Time.Month().String()[:3],
3030
fmt.Sprintf("%2d", node.Time.Day()),
3131
fmt.Sprintf("%02d:%02d", node.Time.Hour(), node.Time.Minute()),
32-
node.Name,
32+
fmt.Sprintf(" %s", node.Name),
3333
}
3434
}
3535

0 commit comments

Comments
 (0)