all repos — flounder @ 61b974fda140a6c55799885d1c573d17afcb4e00

A small site builder for the Gemini protocol

pre text fix
alex wennerberg alex@alexwennerberg.com
Thu, 12 Nov 2020 22:14:06 -0800
commit

61b974fda140a6c55799885d1c573d17afcb4e00

parent

eec165dc2614a49c6eb53e4d1af7d1698e9c1dc4

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M gmi2html.gogmi2html.go

@@ -38,8 +38,9 @@ altText := string(l.(gemini.LinePreformattingToggle))

if altText != "" { altText = html.EscapeString(altText) fmt.Fprintf(&b, "<pre title='%s'>\n", altText) + } else { + fmt.Fprint(&b, "<pre>\n") } - fmt.Fprint(&b, "<pre>\n") } else { fmt.Fprint(&b, "</pre>\n") }