From c1ad6cb77889880ad0189a689840fbfa6e5cbc80 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Wed, 16 May 2007 10:45:45 +0200 Subject: Restrict length of repo description on repolist page If any repo has a very long description, all repos suffer since the repo-links in the right-most column gets pushed out of sight. Fix it by introducing max-repodesc-length parameter in cgitrc, and default to 60 chars. Signed-off-by: Lars Hjemli --- ui-repolist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-repolist.c') diff --git a/ui-repolist.c b/ui-repolist.c index d341193..d7311e4 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -30,7 +30,7 @@ void cgit_print_repolist(struct cacheitem *item) html_txt(repo->name); html_link_close(); html(""); - html_txt(repo->desc); + html_ntxt(cgit_max_repodesc_len, repo->desc); html(""); html_txt(repo->owner); html(""); -- cgit v1.2.3-59-g8ed1b