summary refs log tree commit diff
diff options
context:
space:
mode:
authorwrmr2025-03-25 23:19:11 -0500
committerwrmr2025-03-25 23:19:11 -0500
commit837271b8b8a36e57d7a4b562887b5c1279270461 (patch)
treebd10e878fef14c82de230d792ad651353b7c27fd
parent766767e9c288a9ab321d4dfee717b68079f4e520 (diff)
add newline after hvar :roots HEAD master
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 1f6bb64..d0f6e04 100644
--- a/main.c
+++ b/main.c
@@ -407,7 +407,7 @@ Str html_head(Options *o, Arena *m, Arena *l) {
 		}
 		str_cat(&h, S("<style>\n"), m);
 		if (o->hvarc > 0) {
-			str_cat(&h, S(":root{"), m);
+			str_cat(&h, S(":root {"), m);
 			for (int i = 0; i < o->hvarc; i++) {
 				Str name, val;
 				if (hvar_calc(o->hvarv[i], &name, &val, o->title)) {
@@ -420,7 +420,7 @@ Str html_head(Options *o, Arena *m, Arena *l) {
 				str_cat(&h, val, m);
 				str_catc(&h, ';', m);
 			}
-			str_catc(&h, '}', m);
+			str_cat(&h, S("}\n"), m);
 		}
 		Str css;
 		if (read_all(f, &css, l)) {