Adjust HTML for view action

This commit is contained in:
2025-10-01 17:45:38 +09:00
parent 387ec67bd3
commit 4297a213a9
2 changed files with 4 additions and 6 deletions

View File

@@ -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("<span class=\"markup\">}}}</span><br />\n")
s.html.WriteString("<span class=\"markup\">}}}</span>")
} else if s.block != blockMath && s.block != blockRaw && string(line) == "%%%" {
blockEnd(&s, blockMath)
nextLine(&s)

View File

@@ -33,14 +33,12 @@
<a href="/?a=upload">Upload</a>
<a href="/?a=info">Info</a>
</div>
{{if .Diff}}
<h1>Diff</h1>
<div><code>
{{.Diff | fmtdiff}}
</code></div>
{{end}}
<div><code>
{{.Diff | fmtdiff}}</code></div>
{{end}}
<h1><a href="/?a=search&t=content&w={{.Name | urlquery}}">{{.Title}}</a></h1>
<div>