Brings gopher link numbering style inline with the other protocols

This commit is contained in:
sloum 2020-10-31 21:44:45 -07:00
parent 8789b4d6af
commit a3cb016449
1 changed files with 2 additions and 1 deletions

View File

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