~adnano/gmnitohtml

e3b1e37e7ec62b199aac827f1f147621745250e9 — Adnan Maolood 3 years ago b3379f9
Don't output <br> tags
1 files changed, 1 insertions(+), 5 deletions(-)

M main.go
M main.go => main.go +1 -5
@@ 106,11 106,7 @@ func (h *HTMLWriter) Handle(line gemini.Line) {
	case gemini.LineQuote:
		fmt.Fprintf(h.out, "<blockquote>%s</blockquote>\n", html.EscapeString(string(line)))
	case gemini.LineText:
		if line == "" {
			fmt.Fprint(h.out, "<br>\n")
		} else {
			fmt.Fprintf(h.out, "<p>%s</p>\n", html.EscapeString(string(line)))
		}
		fmt.Fprintf(h.out, "<p>%s</p>\n", html.EscapeString(string(line)))
	}
}