mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
more tests for indent and wrap
This commit is contained in:
parent
af7f4e97cf
commit
3d79eb5730
3 changed files with 16 additions and 8 deletions
|
|
@ -232,7 +232,9 @@ func prettify(text string) string {
|
|||
}
|
||||
|
||||
func format_with_indent(output io.Writer, text string, indent string, screen_width int) {
|
||||
io.WriteString(output, style.WrapText(prettify(text), indent, screen_width, "#placeholder_for_formatting#"))
|
||||
text = prettify(text)
|
||||
indented := style.WrapText(text, indent, screen_width, "#placeholder_for_formatting#")
|
||||
io.WriteString(output, indented)
|
||||
}
|
||||
|
||||
func full_command_name(cmd *cobra.Command) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue