summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-12 19:15:33 -0400
committerJune McEnroe <june@causal.agency>2020-07-12 19:15:33 -0400
commit280f2002c6e5c9691fb569e4818c226cec260887 (patch)
treec5dca05b2c349f981c18f3fc69336cdd2a658329
parentHandle search query errors (diff)
downloadscooper-280f2002c6e5c9691fb569e4818c226cec260887.tar.gz
scooper-280f2002c6e5c9691fb569e4818c226cec260887.zip
Don't use KHTML_PRETTY
It's kinda of unpredictable and can lead to unintended whitespace.
-rw-r--r--contexts.c2
-rw-r--r--default.css4
-rw-r--r--events.c2
-rw-r--r--networks.c2
-rw-r--r--search.c2
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);