diff --git a/ui-log.c b/ui-log.c
index 631e46d..adc9a66 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -35,6 +35,7 @@ void print_commit(struct commit *commit)
{
struct commitinfo *info;
char *tmp;
+ int cols = 2;
info = cgit_parse_commit(commit);
html("
");
@@ -66,15 +67,15 @@ void print_commit(struct commit *commit)
}
html(" |
\n");
if (ctx.qry.showmsg) {
- html(" | ");
- html_txt(info->msg);
- html("
| | ");
if (ctx.repo->enable_log_filecount) {
- html(" | ");
+ cols++;
if (ctx.repo->enable_log_linecount)
- html(" | ");
+ cols++;
}
- html("
\n");
+ htmlf(" | ",
+ cols);
+ html_txt(info->msg);
+ html("
|
\n");
}
cgit_free_commitinfo(info);
}