Do not add a trailing newline when wrapping

This commit is contained in:
Kovid Goyal
2023-03-27 07:53:55 +05:30
parent e42b4fd9a6
commit 924cd4cadd
4 changed files with 8 additions and 7 deletions
+1
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) {