From ea8b569e3997693b703b7f7710f4245a24ff3d94 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 13 Aug 2026 19:23:04 -1000 Subject: Skip the owner link when a repo has no owner --- source/ui-repolist.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'source/ui-repolist.c') diff --git a/source/ui-repolist.c b/source/ui-repolist.c index e9e710e..a8b401f 100644 --- a/source/ui-repolist.c +++ b/source/ui-repolist.c @@ -237,13 +237,17 @@ static void print_repo_row(const char *currenturl, int sublevel) html(""); if (ctx.cfg.enable_index_owner) { html(""); - html(""); - html_txt(ctx.repo->owner); - html(""); + // A repo without an owner gets an empty cell, since a link + // with no text cannot be clicked or read out. + if (ctx.repo->owner && *ctx.repo->owner) { + html(""); + html_txt(ctx.repo->owner); + html(""); + } html(""); } html(""); -- cgit 2.12.1