From 428d26d4a8afe1b2777a992723168117d0bf9699 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 28 Mar 2023 02:31:42 -0400 Subject: [PATCH] fix br display for packages curls (#23737) (#23764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport #23737 by @HesterG Before: 截屏2023-03-27 15 48 23 This happens because the `
` matches this [rule](https://github.com/go-gitea/gitea/blob/e6e602fd8d35471f1e2f4a42669a1f17e76e0176/web_src/css/markup/content.css#L428), which is not necessary here (This is introduced by #22861, did a quick check, and this is the only place used `
` inside `` from the PR): ```css .markup code br, .markup tt br { display: none; } ``` After: 截屏2023-03-27 15 46 50 Co-authored-by: Hester Gong Co-authored-by: wxiaoguang --- templates/package/content/generic.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/package/content/generic.tmpl b/templates/package/content/generic.tmpl index eae4d670f9c6f..2674a155d33ce 100644 --- a/templates/package/content/generic.tmpl +++ b/templates/package/content/generic.tmpl @@ -5,9 +5,9 @@

-					{{- range .PackageDescriptor.Files -}}
-curl 
- {{- end -}} +{{- range .PackageDescriptor.Files -}} +curl +{{end -}}