summaryrefslogtreecommitdiffabout
path: root/ui-tree.c
authorLars Hjemli <hjemli@gmail.com>2007-06-16 19:35:58 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-06-16 19:35:58 (UTC)
commitf91b9696a36008c245a3195800ba0c5fa3e890f9 (patch) (side-by-side diff)
treec064e555881d3b426b73fd841531a19c064a9984 /ui-tree.c
parentffc69736a606fd8f9a10468cce48b9a37b428944 (diff)
downloadcgit-f91b9696a36008c245a3195800ba0c5fa3e890f9.zip
cgit-f91b9696a36008c245a3195800ba0c5fa3e890f9.tar.gz
cgit-f91b9696a36008c245a3195800ba0c5fa3e890f9.tar.bz2
ui-tree: make blob viewer generate valid html
A leftover '</td></tr>' made ui-tree generate invalid html for blob content. Fix it. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-tree.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-tree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui-tree.c b/ui-tree.c
index eb3d3ac..db0bef6 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -38,25 +38,24 @@ static void print_object(const unsigned char *sha1, char *path)
lineno = 0;
while(idx < size) {
if (buf[idx] == '\n') {
buf[idx] = '\0';
htmlf("<tr><td class='no'>%d</td><td class='txt'>",
++lineno);
html_txt(buf + start);
html("</td></tr>\n");
start = idx + 1;
}
idx++;
}
- html("\n</td></tr>\n");
html("</table>\n");
}
static int ls_item(const unsigned char *sha1, const char *base, int baselen,
const char *pathname, unsigned int mode, int stage)
{
char *name;
enum object_type type;
unsigned long size = 0;
char *url, *qry;