Use the new styling API for CLI infra

This commit is contained in:
Kovid Goyal
2022-08-28 10:16:18 +05:30
parent 4a4500d56b
commit 249df69ac9
2 changed files with 18 additions and 37 deletions

View File

@@ -33,7 +33,7 @@ func (self *Context) UrlFunc(spec string) func(string, string) string {
p := prefix_for_spec(spec)
s := suffix_for_spec(spec)
return func(url string, text string) string {
return func(url, text string) string {
if !self.AllowEscapeCodes {
return text
}