Do not add a trailing newline when wrapping

This commit is contained in:
Kovid Goyal
2023-03-20 21:18:53 +05:30
parent e42b4fd9a6
commit 924cd4cadd
4 changed files with 8 additions and 7 deletions

View File

@@ -37,6 +37,7 @@ func (self *Command) ShowVersion() {
func format_with_indent(output io.Writer, text string, indent string, screen_width int) {
indented := style.WrapText(text, indent, screen_width, "#placeholder_for_formatting#")
io.WriteString(output, indented)
io.WriteString(output, "\n")
}
func (self *Command) FormatSubCommands(output io.Writer, formatter *markup.Context, screen_width int) {