diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Give the stub and tag rows their full width
Diffstat (limited to 'source/ui-log.c')
-rw-r--r--source/ui-log.c10
1 file changed, 7 insertions, 3 deletions
diff --git a/source/ui-log.c b/source/ui-log.c
index 4bd17fa..9e9e31f 100644
--- a/source/ui-log.c
+++ b/source/ui-log.c
@@ -152,7 +152,9 @@ static void print_graph_above(struct rev_info *revs, struct strbuf *graph,
while (!graph_next_line(revs->graph, graph)) {
html("<tr class='nohover'><td class='commitgraph'>");
html(graph->buf);
- htmlf("</td><td colspan='%d' /></tr>\n", columns);
+ // The graph cell is one of the columns, so the filler spans
+ // the rest.
+ htmlf("</td><td colspan='%d'></td></tr>\n", columns - 1);
strbuf_setlen(graph, 0);
}
}
@@ -301,9 +303,11 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
print_graph_padding(revs, &graphbuf, msg_lines);
}
else
- html("<td/>");
+ html("<td></td>");
- htmlf("<td colspan='%d'%s>\n", columns - (revs->graph ? 1 : 0),
+ // Either way one cell is already on the row, so the message
+ // spans the remaining columns.
+ htmlf("<td colspan='%d'%s>\n", columns - 1,
ctx.qry.showmsg ? " class='logmsg'" : "");
html_txt(msgbuf.buf);
html("</td></tr>\n");