mirror of
https://git.zx2c4.com/cgit
synced 2025-07-30 15:45:06 +02:00
ui-tree.c: do not add blank line when displaying blobs
Also, fix a related bug in the test-suite. Noticed-by: Jim Meyering <jim@meyering.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
03afc5fe1f
commit
f3c99cf1ce
2 changed files with 5 additions and 3 deletions
|
@ -54,8 +54,10 @@ static void print_object(const unsigned char *sha1, char *path)
|
|||
}
|
||||
idx++;
|
||||
}
|
||||
htmlf(linefmt, ++lineno);
|
||||
html_txt(buf + start);
|
||||
if (start < idx) {
|
||||
htmlf(linefmt, ++lineno);
|
||||
html_txt(buf + start);
|
||||
}
|
||||
html("</td></tr>\n");
|
||||
html("</table>\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue