-rw-r--r-- | ui-log.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -37,2 +37,3 @@ void print_commit(struct commit *commit) char *tmp; + int cols = 2; @@ -68,11 +69,11 @@ void print_commit(struct commit *commit) if (ctx.qry.showmsg) { - html("<tr class='nohover'><td></td><td><div class='commit-msg'>"); - html_txt(info->msg); - html("</div><br/></td><td></td>"); if (ctx.repo->enable_log_filecount) { - html("<td></td>"); + cols++; if (ctx.repo->enable_log_linecount) - html("<td></td>"); + cols++; } - html("</tr>\n"); + htmlf("<tr class='nohover'><td></td><td colspan='%d'><div class='commit-msg'>", + cols); + html_txt(info->msg); + html("</div><br/></td></tr>\n"); } |