From f401337f64702c849b1592f54f39b118e73eeb00 Mon Sep 17 00:00:00 2001 From: Hester Gong Date: Tue, 28 Mar 2023 13:18:01 +0800 Subject: [PATCH] fix br display for packages curls (#23737) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 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 eae4d670f9..2674a155d3 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 -}}