From cddbf5ee1ec0fe4c965fd7ba80b4c9617296a7ef Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 10 Nov 2024 12:37:50 -0600 Subject: [PATCH] change newline insertion --- src/hwylterm/hwylcli.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hwylterm/hwylcli.nim b/src/hwylterm/hwylcli.nim index a1defcb..b0dccc4 100644 --- a/src/hwylterm/hwylcli.nim +++ b/src/hwylterm/hwylcli.nim @@ -64,7 +64,6 @@ func render*(cli: HwylCliHelp, f: HwylFlagHelp): string = result.add "[/]" else: result.add " ".repeat(1 + cli.shortArgLen) - result.add " " if f.long != "": result.add "[" & cli.styles.flagLong & "]" @@ -101,9 +100,9 @@ func render*(cli: HwylCliHelp): string = if cli.desc != "": result.add "\n" result.add cli.desc + result.add "\n" result.add "\n" if cli.subcmds.len > 0: - result.add "\n" result.add "[" & cli.styles.header & "]" result.add "subcommands[/]:\n" for s in cli.subcmds: