From 4dda367d09e769fff4a8b20cde07d634ef062e0c Mon Sep 17 00:00:00 2001 From: wrmr Date: Sat, 8 Mar 2025 18:13:32 -0500 Subject: add newlines after html elements in standalone mode --- main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index 1f9876e..634127f 100644 --- a/main.c +++ b/main.c @@ -362,13 +362,13 @@ int main(int argc, const char **argv) { doc = doc->prev; if (doc->title.s) title = doc->title; } - Str thtml = S("" - "" - ""); + Str thtml = S("\n" + "\n" + "\n"); if (title.s) { str_cat(&thtml, S(""), &scratch); str_cat_html(&thtml, title, &scratch); - str_cat(&thtml, S(""), &scratch); + str_cat(&thtml, S("\n"), &scratch); } if (opts.stylesheet.s) { @@ -384,7 +384,7 @@ int main(int argc, const char **argv) { fprintf(stderr, "failed to read stylesheet: %s\n", strerror(errno)); return 1; } - str_cat(&thtml, S(""), &scratch); + str_cat(&thtml, S("\n"), &scratch); perm = p; } -- cgit 1.4.1-2-gfad0