Browse Source

Don't output <br>s

master
Bryan Bennett 5 months ago
parent
commit
5474348470
Signed by: bryan GPG Key ID: 4AF3A523BC147CA2
  1. 4
      html.go

4
html.go

@ -59,9 +59,7 @@ func textToHTML(text gemini.Text) []byte {
fmt.Fprintf(&b, "<blockquote>%s</blockquote>\n", html.EscapeString(text))
case gemini.LineText:
text := string(l.(gemini.LineText))
if text == "" {
b.WriteString("<br>\n")
} else {
if text != "" {
fmt.Fprintf(&b, "<p>%s</p>\n", html.EscapeString(text))
}
}

Loading…
Cancel
Save