From 36ad8c52876e1370edbe37b4cb8ecd1634107a89 Mon Sep 17 00:00:00 2001
From: Gusted <postmaster@gusted.xyz>
Date: Sun, 22 Oct 2023 00:34:57 +0200
Subject: [PATCH] [GITEA] Fix label render containing invalid HTML

- The label HTML contained a quote that wasn't being closed.

(cherry picked from commit e2bc2c9a1fff482c49dbeb3a51e4e1c698bf506c)
(cherry picked from commit c42b53c6b0867f6aecede3e7283f033a4784b098)
---
 modules/templates/util_render.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/templates/util_render.go b/modules/templates/util_render.go
index ed6eae326a..84c3a1587a 100644
--- a/modules/templates/util_render.go
+++ b/modules/templates/util_render.go
@@ -179,7 +179,7 @@ func RenderLabel(ctx context.Context, label *issues_model.Label) template.HTML {
 
 	s := fmt.Sprintf("<span class='ui label scope-parent' title='%s'>"+
 		"<div class='ui label scope-left' style='color: %s !important; background-color: %s !important'>%s</div>"+
-		"<div class='ui label scope-right' style='color: %s !important; background-color: %s !important''>%s</div>"+
+		"<div class='ui label scope-right' style='color: %s !important; background-color: %s !important'>%s</div>"+
 		"</span>",
 		description,
 		textColor, scopeColor, scopeText,