From a3cb016449a1375832659ba9521fb886ff1299c6 Mon Sep 17 00:00:00 2001 From: sloum Date: Sat, 31 Oct 2020 21:44:45 -0700 Subject: [PATCH] Brings gopher link numbering style inline with the other protocols --- gopher/gopher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gopher/gopher.go b/gopher/gopher.go index fbe579f..adf36e9 100644 --- a/gopher/gopher.go +++ b/gopher/gopher.go @@ -144,7 +144,8 @@ func parseMap(text string) (string, []string) { } else { link := buildLink(line[2], line[3], string(line[0][0]), line[1]) links = append(links, link) - linktext := fmt.Sprintf("(%s) %2d %s", getType(string(line[0][0])), len(links), title) + linkNum := fmt.Sprintf("[%d]",len(links)) + linktext := fmt.Sprintf("%s %5s %s", getType(string(line[0][0])), linkNum, title) splitContent[i] = linktext } }