flounder

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

commit 5a1f407a0b10e1b634855573fff2df16d88fb952
parent 6408dd4400ca0299e96b7e5460584ea57b17a8a3
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Tue, 24 Nov 2020 18:28:00 -0800

Revert "Fix styles a bit"

This reverts commit 6408dd4400ca0299e96b7e5460584ea57b17a8a3.

Diffstat:
Mgmi2html.go | 12++++++------
Mtemplates/static/style.css | 4+---
2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/gmi2html.go b/gmi2html.go @@ -16,11 +16,11 @@ func textToHTML(text gemini.Text) string { if _, ok := l.(gemini.LineListItem); ok { if !list { list = true - fmt.Fprint(&b, "<ul>") + fmt.Fprint(&b, "<ul>\n") } } else if list { list = false - fmt.Fprint(&b, "</ul>") + fmt.Fprint(&b, "</ul>\n") } switch l.(type) { case gemini.LineLink: @@ -37,12 +37,12 @@ func textToHTML(text gemini.Text) string { altText := string(l.(gemini.LinePreformattingToggle)) if altText != "" { altText = html.EscapeString(altText) - fmt.Fprintf(&b, "<pre title='%s'>", altText) + fmt.Fprintf(&b, "<pre title='%s'>\n", altText) } else { fmt.Fprint(&b, "<pre>\n") } } else { - fmt.Fprint(&b, "</pre>") + fmt.Fprint(&b, "</pre>\n") } case gemini.LinePreformattedText: text := string(l.(gemini.LinePreformattedText)) @@ -72,10 +72,10 @@ func textToHTML(text gemini.Text) string { } } if pre { - fmt.Fprint(&b, "</pre>") + fmt.Fprint(&b, "</pre>\n") } if list { - fmt.Fprint(&b, "</ul>") + fmt.Fprint(&b, "</ul>\n") } return b.String() } diff --git a/templates/static/style.css b/templates/static/style.css @@ -14,10 +14,8 @@ h1, h2, h3, h4, h5, h6{ } .gemini { - white-space: pre-wrap; - line-height: 1.5; +white-space: pre-wrap; } - body { }