all repos — flounder @ 5a1f407a0b10e1b634855573fff2df16d88fb952

A small site builder for the Gemini protocol

Revert "Fix styles a bit"

This reverts commit 6408dd4400ca0299e96b7e5460584ea57b17a8a3.
alex wennerberg alex@alexwennerberg.com
Tue, 24 Nov 2020 18:28:00 -0800
commit

5a1f407a0b10e1b634855573fff2df16d88fb952

parent

6408dd4400ca0299e96b7e5460584ea57b17a8a3

2 files changed, 7 insertions(+), 9 deletions(-)

jump to
M gmi2html.gogmi2html.go

@@ -16,11 +16,11 @@ for _, l := range text {

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 @@ if pre {

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 @@ }

} } 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() }
M templates/static/style.csstemplates/static/style.css

@@ -14,10 +14,8 @@ margin-bottom:.2em;

} .gemini { - white-space: pre-wrap; - line-height: 1.5; +white-space: pre-wrap; } - body { }