From 6b79b0de076630a3abbf9204ca7ee235bfb09b2f Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 12 Sep 2023 00:40:13 -0500 Subject: [PATCH] use syntax to prevent ligature funny business --- src/bbansi.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bbansi.nim b/src/bbansi.nim index a88fba9..e1f715c 100644 --- a/src/bbansi.nim +++ b/src/bbansi.nim @@ -132,7 +132,7 @@ when isMainModule: import std/[strformat, parseopt] const version = staticExec "git describe --tags --always --dirty=-dev" let help = &""" -{bb"[bold]bbansi[/] \[[green]args...[/]] [faint]\[-h|-v][/]"} +{bb"[bold]bbansi[/] \[[green]args...[/]] [faint][[-h,-v][/]"} {bb"[italic]usage"}: bbansi "[yellow] yellow text!" @@ -144,7 +144,7 @@ flags: """ & $(bb(collect(for (s, l, d) in [ ("h", "help", "show this help"), ("v", "version", "show version")]: - &"[yellow]-{s}[/] [green]--{l.alignLeft(8)}[/] | {d}").join("\n ") + &"[yellow]-{s}[/] [green]--{l.alignLeft(8)}[/] {d}").join("\n ") )) proc writeHelp() = echo help