Merge branch 'fix-gopher-crash' of sloum/bombadillo into develop

This commit is contained in:
Sloom Sloum Sluom IV 2020-01-30 22:47:28 -05:00 committed by Gitea
commit d17e530667
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
2.1.0
2.1.3

View File

@ -133,11 +133,12 @@ func parseMap(text string) (string, []string) {
title = line[0][1:]
} else {
title = ""
line[0] = "i "
}
if len(line) > 1 && len(line[0]) > 0 && string(line[0][0]) == "i" {
if len(line) < 4 || strings.HasPrefix(line[0], "i") {
splitContent[i] = " " + string(title)
} else if len(line) >= 4 {
} 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)