[PATCH 2/2] ui-shared: emit root-desc-html and repo.desc-html after their text counterparts

Andy Green andy at warmcat.com
Thu Jun 21 08:46:47 CEST 2018

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 <andy at warmcat.com>
 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("<tr><td class='sub'>");
 	if (ctx.repo) {
+		if (ctx.repo->desc_html)
+			html(ctx.repo->desc_html);
 		html("</td><td class='sub right'>");
 	} else {
 		if (ctx.cfg.root_desc)
+		if (ctx.cfg.root_desc_html)
+			html(ctx.cfg.root_desc_html);

More information about the CGit mailing list