mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 04:03:16 +02:00
Fix formatting of lines with only spaces
This commit is contained in:
@@ -81,6 +81,10 @@ var blue_fmt = color.New(color.FgBlue).SprintFunc()
|
||||
var green_fmt = color.New(color.FgGreen).SprintFunc()
|
||||
|
||||
func format_line_with_indent(output io.Writer, text string, indent string, screen_width int) {
|
||||
if strings.TrimSpace(text) == "" {
|
||||
fmt.Fprintln(output, indent)
|
||||
return
|
||||
}
|
||||
x := len(indent)
|
||||
fmt.Fprint(output, indent)
|
||||
in_escape := 0
|
||||
|
||||
Reference in New Issue
Block a user