From 11fcb0f86dc6fe78d499be7f869bb31a87a5911c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 14 Aug 2026 11:19:02 -1000 Subject: Drop the XHTML slashes and boolean spellings --- source/ui-diff.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/ui-diff.c') diff --git a/source/ui-diff.c b/source/ui-diff.c index 6b6b30f..98bccfe 100644 --- a/source/ui-diff.c +++ b/source/ui-diff.c @@ -246,15 +246,15 @@ static void print_file_header(const struct object_id *old_oid, char *old_path, html_txt(new_path); if (old_mode == 0) - htmlf("
new file mode %.6o", new_mode); + htmlf("
new file mode %.6o", new_mode); if (new_mode == 0) - htmlf("
deleted file mode %.6o", old_mode); + htmlf("
deleted file mode %.6o", old_mode); if (!subproject) { old_abbrev = abbrev_oid(old_oid); new_abbrev = abbrev_oid(new_oid); - htmlf("
index %s..%s", old_abbrev, new_abbrev); + htmlf("
index %s..%s", old_abbrev, new_abbrev); free(old_abbrev); free(new_abbrev); if (old_mode != 0 && new_mode != 0) { @@ -264,9 +264,9 @@ static void print_file_header(const struct object_id *old_oid, char *old_path, } if (is_null_oid(old_oid)) { old_path = "dev/null"; - html("
--- /"); + html("
--- /"); } else - html("
--- a/"); + html("
--- a/"); if (old_mode != 0) cgit_tree_link(old_path, NULL, NULL, ctx.qry.head, oid_to_hex(old_rev_oid), old_path); @@ -274,9 +274,9 @@ static void print_file_header(const struct object_id *old_oid, char *old_path, html_txt(old_path); if (is_null_oid(new_oid)) { new_path = "dev/null"; - html("
+++ /"); + html("
+++ /"); } else - html("
+++ b/"); + html("
+++ b/"); if (new_mode != 0) cgit_tree_link(new_path, NULL, NULL, ctx.qry.head, oid_to_hex(new_rev_oid), new_path); -- cgit v2.8.0