From e54df683749972621bd54ab9bcc0e786720818bc Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 5 Apr 2024 22:47:49 +0800 Subject: [PATCH] fix --- services/markup/processorhelper_codepreview_test.go | 4 ++-- templates/base/markup_codepreview.tmpl | 2 +- web_src/css/markup/content.css | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/markup/processorhelper_codepreview_test.go b/services/markup/processorhelper_codepreview_test.go index 01db792925e30..e9c7123ea1d26 100644 --- a/services/markup/processorhelper_codepreview_test.go +++ b/services/markup/processorhelper_codepreview_test.go @@ -36,7 +36,7 @@ func TestProcessorHelperCodePreview(t *testing.T) { - + @@ -63,7 +63,7 @@ func TestProcessorHelperCodePreview(t *testing.T) {
# repo1# repo1
- +
# repo1# repo1
diff --git a/templates/base/markup_codepreview.tmpl b/templates/base/markup_codepreview.tmpl index c65ab284065c7..d2e6945585862 100644 --- a/templates/base/markup_codepreview.tmpl +++ b/templates/base/markup_codepreview.tmpl @@ -17,7 +17,7 @@ {{- $lineEscapeStatus := index $.LineEscapeStatus $idx -}} {{if $lineEscapeStatus.Escaped}}{{end}} {{- end}} - {{$line.FormattedContent}} + {{$line.FormattedContent}} {{- end -}} diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css index 376d3030c7351..d44e727a2589c 100644 --- a/web_src/css/markup/content.css +++ b/web_src/css/markup/content.css @@ -432,7 +432,7 @@ text-align: right; } -.markup code:not(.code-inner), +.markup code, .markup tt { padding: 0.2em 0.4em; margin: 0;