From mboxrd@z Thu Jan 1 00:00:00 1970 From: aklhfex at gmail.com (Chris Mayo) Date: Mon, 18 Feb 2019 20:46:42 +0000 Subject: [PATCH 3/5] Replace self-closing syntax on non-void elements In-Reply-To: <20190218204644.440-1-aklhfex@gmail.com> References: <20190218204644.440-1-aklhfex@gmail.com> Message-ID: <20190218204644.440-4-aklhfex@gmail.com> Self-closing syntax not valid in HTML5 for normal elements, that could contain content. Signed-off-by: Chris Mayo --- ui-diff.c | 4 ++-- ui-log.c | 2 +- ui-stats.c | 4 ++-- ui-tree.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui-diff.c b/ui-diff.c index eb0a395..62319e9 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -343,7 +343,7 @@ void cgit_print_diff_ctrls(void) html("
"); cgit_add_hidden_formfields(1, 0, ctx.qry.page); html(""); - html(""); + html(""); html(""); html(""); html(""); - html("
context:"); @@ -374,7 +374,7 @@ void cgit_print_diff_ctrls(void) html_intoption(1, "ssdiff", curr); html_intoption(2, "stat only", curr); html("
"); + html("
"); html(""); html("
"); html("
"); diff --git a/ui-log.c b/ui-log.c index 3bcb657..cce4d5a 100644 --- a/ui-log.c +++ b/ui-log.c @@ -309,7 +309,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) html("\n"); } else - html(""); /* Empty 'Age' column */ + html(""); /* Empty 'Age' column */ /* Print msgbuf into remainder of table row */ htmlf("\n", columns - (revs->graph ? 1 : 0), diff --git a/ui-stats.c b/ui-stats.c index 7acd358..f5a2b6e 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -391,7 +391,7 @@ void cgit_show_stats(void) html("stat options"); html("
"); cgit_add_hidden_formfields(1, 0, "stats"); - html(""); + html("
"); if (ctx.repo->max_stats > 1) { html(""); html(""); - html("
Period:
"); + html("
"); html(""); html("
"); html("
"); diff --git a/ui-tree.c b/ui-tree.c index 08a8505..f8cbf7a 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -269,7 +269,7 @@ static void ls_head(void) html("Mode"); html("Name"); html("Size"); - html(""); + html(""); html("\n"); } -- 2.20.1