flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 61b974fda140a6c55799885d1c573d17afcb4e00
parent eec165dc2614a49c6eb53e4d1af7d1698e9c1dc4
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu, 12 Nov 2020 22:14:06 -0800

pre text fix

Diffstat:
Mgmi2html.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gmi2html.go b/gmi2html.go @@ -38,8 +38,9 @@ func textToHTML(text gemini.Text) string { 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") }