about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-04-17 18:29:50 +0200
committerLars Hjemli <hjemli@gmail.com>2008-04-17 18:33:33 +0200
commit9ec5cd7944a7099515b7d41107007d6332a2540e (patch)
tree3d3284c73a72e7122cde02b0eb7ff1f4d8cd1a0d
parentCleanup page header (diff)
downloadcgit-pink-9ec5cd7944a7099515b7d41107007d6332a2540e.tar.gz
cgit-pink-9ec5cd7944a7099515b7d41107007d6332a2540e.zip
Fix commitdiff annoyance
Someone were a bit sloppy when the commitdiff got included 'inline' in
commit 89aa3c0d0a4c6d9885272602005975b763ea1604. This patch deletes a
stray `)` and makes sure the diffstat summary `<div>` is closed before
the full diff is printed.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r--ui-commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-commit.c b/ui-commit.c
index dd36cc0..12a96fb 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -227,10 +227,10 @@ void cgit_print_commit(char *hex)
 		html("<div class='diffstat-summary'>");
 		htmlf("%d files changed, %d insertions, %d deletions",
 		      files, total_adds, total_rems);
+		html("</div>");
 		cgit_print_diff(ctx.qry.sha1,
 				sha1_to_hex(commit->parents->item->object.sha1),
 				NULL);
-		html(")</div>");
 	}
 	cgit_free_commitinfo(info);
 }
e63a1d998a053a39ba67&follow=1'>Shorten $HOME to ~ in prompt expansionJune McEnroe 2019-01-13Document PSlitJune McEnroe 2019-01-13Document PS0June McEnroe 2019-01-13Set PS0 in cashJune McEnroe 2019-01-13Add PS0June McEnroe 2019-01-13Change default ENV from cashrc to env.shJune McEnroe 2019-01-13Use colours in cash promptsJune McEnroe 2019-01-12Set PSlit like NetBSD shJune McEnroe 2019-01-12Install gnupg2 from pkgsrc and symlink gpgJune McEnroe 2019-01-12Reference cash builtin man pages in cash.1 SEE ALSOJune McEnroe 2019-01-12Restore cash builtin man page datesJune McEnroe 2019-01-12Use local libeditJune McEnroe 2019-01-12Replace libedit MakefileJune McEnroe 2019-01-11Import /usr/src/lib/libedit from NetBSD 8.0June McEnroe 2019-01-11Add PSlit for prompt escapesJune McEnroe 2019-01-11Don't make depend automaticallyJune McEnroe