Browse Source

Brings gopher link numbering style inline with the other protocols

pull/188/head
sloum 12 months ago
parent
commit
a3cb016449
  1. 3
      gopher/gopher.go

3
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
}
}

Loading…
Cancel
Save