forked from sloum/bombadillo
Minor change to gophermap rendering to get rid of terminal period from server
This commit is contained in:
parent
09dc779045
commit
3a173d89e0
|
@ -39,6 +39,11 @@ func (v *View) ParseMap() {
|
|||
if v.Address.Gophertype == "1" || v.Address.Gophertype == "7" {
|
||||
for i, e := range v.Content {
|
||||
e = strings.Trim(e, "\r\n")
|
||||
if e == "." {
|
||||
v.Content[i] = " "
|
||||
continue
|
||||
}
|
||||
|
||||
line := strings.Split(e,"\t")
|
||||
var title string
|
||||
if len(line[0]) > 1 {
|
||||
|
@ -56,7 +61,6 @@ func (v *View) ParseMap() {
|
|||
v.Content[i] = linktext
|
||||
}
|
||||
}
|
||||
v.Content = v.Content[: len(v.Content) - 1]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue