Improves upon previoius fixes to gophermap parsing

This commit is contained in:
sloum 2020-02-01 09:55:55 -08:00
parent d17e530667
commit 53cbb9dd02
1 changed files with 3 additions and 1 deletions

View File

@ -131,9 +131,11 @@ func parseMap(text string) (string, []string) {
if len(line[0]) > 1 { if len(line[0]) > 1 {
title = line[0][1:] title = line[0][1:]
} else if len(line[0]) == 1 {
title = ""
} else { } else {
title = "" title = ""
line[0] = "i " line[0] = "i"
} }
if len(line) < 4 || strings.HasPrefix(line[0], "i") { if len(line) < 4 || strings.HasPrefix(line[0], "i") {