Skip to content

Commit 28b1d0a

Browse files
committed
Cleaning up \? output
1 parent 4bd2481 commit 28b1d0a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

metacmd/section.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ func Listing(w io.Writer) {
7474
}
7575
sectionDescs[section] = descs
7676
}
77-
for _, section := range SectionOrder {
77+
for i, section := range SectionOrder {
78+
if i != 0 {
79+
fmt.Fprintln(w)
80+
}
7881
fmt.Fprintln(w, section)
7982
for _, line := range sectionDescs[section] {
8083
fmt.Fprintln(w, rpad(line[0], plen), "", line[1])
8184
}
82-
fmt.Fprintln(w)
8385
}
8486
}
8587

0 commit comments

Comments
 (0)