From mboxrd@z Thu Jan 1 00:00:00 1970 From: andy at warmcat.com (Andy Green) Date: Thu, 21 Jun 2018 14:46:47 +0800 Subject: [PATCH 2/2] ui-shared: emit root-desc-html and repo.desc-html after their text counterparts In-Reply-To: <45190b3f-ced1-2b5f-9d3e-c9da90192867@warmcat.com> References: <45190b3f-ced1-2b5f-9d3e-c9da90192867@warmcat.com> Message-ID: <152956360719.741.17537017810992910496.stgit@mail.warmcat.com> Where root-desc and repo.desc are used in the header region, also emit their html counterparts afterwards if they are defined. Where root-desc are repo.desc are used outside the header, eg in the repo list, leave it as it is without adding any related html. Signed-off-by: Andy Green --- ui-shared.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui-shared.c b/ui-shared.c index c8f4d8f..a9ec430 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1013,11 +1013,15 @@ static void print_header(void) html(""); if (ctx.repo) { html_txt(ctx.repo->desc); + if (ctx.repo->desc_html) + html(ctx.repo->desc_html); html(""); html_txt(ctx.repo->owner); } else { if (ctx.cfg.root_desc) html_txt(ctx.cfg.root_desc); + if (ctx.cfg.root_desc_html) + html(ctx.cfg.root_desc_html); } html("\n"); }