From 53cbb9dd026c95703ff33ef2fd82176cfd8d8e3d Mon Sep 17 00:00:00 2001 From: sloum Date: Sat, 1 Feb 2020 09:55:55 -0800 Subject: [PATCH] Improves upon previoius fixes to gophermap parsing --- gopher/gopher.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gopher/gopher.go b/gopher/gopher.go index eec64b6..20e76e9 100644 --- a/gopher/gopher.go +++ b/gopher/gopher.go @@ -131,9 +131,11 @@ func parseMap(text string) (string, []string) { if len(line[0]) > 1 { title = line[0][1:] + } else if len(line[0]) == 1 { + title = "" } else { title = "" - line[0] = "i " + line[0] = "i" } if len(line) < 4 || strings.HasPrefix(line[0], "i") {