Skip to content

Commit

Permalink
Cleaning up \? output
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Apr 4, 2024
1 parent 4bd2481 commit 28b1d0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions metacmd/section.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ func Listing(w io.Writer) {
}
sectionDescs[section] = descs
}
for _, section := range SectionOrder {
for i, section := range SectionOrder {
if i != 0 {
fmt.Fprintln(w)
}
fmt.Fprintln(w, section)
for _, line := range sectionDescs[section] {
fmt.Fprintln(w, rpad(line[0], plen), "", line[1])
}
fmt.Fprintln(w)
}
}

Expand Down

0 comments on commit 28b1d0a

Please sign in to comment.