[PATCH 4/5] ui-log,ui-refs: ensure there are cells for each column

Chris Mayo aklhfex at gmail.com
Mon Feb 18 21:46:43 CET 2019


Signed-off-by: Chris Mayo <aklhfex at gmail.com>
---
 ui-log.c  | 4 ++++
 ui-refs.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ui-log.c b/ui-log.c
index cce4d5a..d6c46f2 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -480,6 +480,10 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
 		html("<th class='left'>Lines</th>");
 		columns++;
 	}
+	for (i = 0; i < 5 - columns;) {
+		html("<th>");
+		i++;
+	}
 	html("</tr>\n");
 
 	if (ofs<0)
diff --git a/ui-refs.c b/ui-refs.c
index 2ec3858..30b54fb 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -211,7 +211,7 @@ void cgit_print_refs(void)
 		cgit_print_tags(0);
 	else {
 		cgit_print_branches(0);
-		html("<tr class='nohover'><td colspan='5'> </td></tr>");
+		html("<tr class='nohover'><td> </td><td><td><td><td></tr>");
 		cgit_print_tags(0);
 	}
 	html("</table>");
-- 
2.20.1



More information about the CGit mailing list