From 280f2002c6e5c9691fb569e4818c226cec260887 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 12 Jul 2020 19:15:33 -0400 Subject: Don't use KHTML_PRETTY It's kinda of unpredictable and can lead to unintended whitespace. --- contexts.c | 2 +- default.css | 4 ++++ events.c | 2 +- networks.c | 2 +- search.c | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/contexts.c b/contexts.c index 859fc96..be48628 100644 --- a/contexts.c +++ b/contexts.c @@ -67,7 +67,7 @@ enum kcgi_err contextsPage(struct kreq *req) { struct khtmlreq html; error = error || khttp_body(req) - || khtml_open(&html, req, KHTML_PRETTY) + || khtml_open(&html, req, 0) || htmlHead(&html, scope.network) || htmlNav(&html, scope); if (error) return error; diff --git a/default.css b/default.css index 1606b6f..1d3d3e5 100644 --- a/default.css +++ b/default.css @@ -55,6 +55,10 @@ nav ol li { } nav ol li::before { content: '/'; + padding: 0 1ch; +} +nav ol li:first-child::before { + padding-left: 0; } table { diff --git a/events.c b/events.c index bdeb3f6..a8c2be0 100644 --- a/events.c +++ b/events.c @@ -152,7 +152,7 @@ enum kcgi_err eventsPage(struct kreq *req) { struct khtmlreq html; error = error || khttp_body(req) - || khtml_open(&html, req, KHTML_PRETTY) + || khtml_open(&html, req, 0) || htmlHead(&html, scope.context) || htmlNav(&html, scope) || dateForm(&html, scope, time) diff --git a/networks.c b/networks.c index f860efc..f2f059a 100644 --- a/networks.c +++ b/networks.c @@ -53,7 +53,7 @@ enum kcgi_err networksPage(struct kreq *req) { struct khtmlreq html; error = error || khttp_body(req) - || khtml_open(&html, req, KHTML_PRETTY) + || khtml_open(&html, req, 0) || htmlHead(&html, "Litterbox") || htmlNav(&html, scope); if (error) return error; diff --git a/search.c b/search.c index 88c59a8..878e0f7 100644 --- a/search.c +++ b/search.c @@ -58,7 +58,7 @@ enum kcgi_err searchPage(struct kreq *req) { struct khtmlreq html; error = error || khttp_body(req) - || khtml_open(&html, req, KHTML_PRETTY) + || khtml_open(&html, req, 0) || htmlHead(&html, scope.query) || htmlNav(&html, scope) || khtml_elem(&html, KELEM_TABLE); -- cgit 1.4.1