]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-repolist.c
ui-snapshot: pass repo into get_ref_from_filename()
[cgit.git] / ui-repolist.c
index 7272e87bbcad348215ba6751b9de316930e2be8c..af52f9ba0c6459de7c899d5f15a86b3e9948f3d7 100644 (file)
@@ -329,7 +329,8 @@ void cgit_print_repolist(void)
                repourl = cgit_repourl(ctx.repo->url);
                html_link_open(repourl, NULL, NULL);
                free(repourl);
-               html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc);
+               if (html_ntxt(ctx.repo->desc, ctx.cfg.max_repodesc_len) < 0)
+                       html("...");
                html_link_close();
                html("</td><td>");
                if (ctx.cfg.enable_index_owner) {