1
0
Fork 0
forked from forgejo/forgejo

Fix linting issues

This commit is contained in:
Mai-Lapyst 2024-03-16 08:18:47 +01:00
parent d789d33229
commit 8218e80bfc
No known key found for this signature in database
GPG key ID: F88D929C09E239F8
2 changed files with 14 additions and 12 deletions

View file

@ -1075,7 +1075,7 @@ func filePreviewPatternProcessor(ctx *RenderContext, node *html.Node) {
return
}
preview_node := preview.CreateHtml(locale)
previewNode := preview.CreateHTML(locale)
// Specialized version of replaceContent, so the parent paragraph element is not destroyed from our div
before := node.Data[:preview.start]
@ -1086,7 +1086,7 @@ func filePreviewPatternProcessor(ctx *RenderContext, node *html.Node) {
Type: html.RawNode,
Data: "</p>",
}, nextSibling)
node.Parent.InsertBefore(preview_node, nextSibling)
node.Parent.InsertBefore(previewNode, nextSibling)
node.Parent.InsertBefore(&html.Node{
Type: html.RawNode,
Data: "<p>" + after,