From 4297a213a9b844af6b533580f49cf4ccded1eefa Mon Sep 17 00:00:00 2001 From: Aki Kareha Date: Wed, 1 Oct 2025 17:45:38 +0900 Subject: [PATCH] Adjust HTML for view action --- internal/format/nomark.go | 2 +- internal/util/templates/view.html | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/internal/format/nomark.go b/internal/format/nomark.go index 9ab3b0d..a0bde3b 100644 --- a/internal/format/nomark.go +++ b/internal/format/nomark.go @@ -667,7 +667,7 @@ func nomark(cfg *config.Config, title string, text string) (string, string, stri nextLine(&s) blockBegin(&s, blockParagraph) s.text.WriteString("}}}") - s.html.WriteString("}}}
\n") + s.html.WriteString("}}}") } else if s.block != blockMath && s.block != blockRaw && string(line) == "%%%" { blockEnd(&s, blockMath) nextLine(&s) diff --git a/internal/util/templates/view.html b/internal/util/templates/view.html index 71a22d1..42125a7 100644 --- a/internal/util/templates/view.html +++ b/internal/util/templates/view.html @@ -33,14 +33,12 @@ Upload Info - {{if .Diff}}

Diff

-
-{{.Diff | fmtdiff}} -
-{{end}} +
+{{.Diff | fmtdiff}}
+{{end}}

{{.Title}}