Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed Jun 23, 2024
1 parent 25bdeb0 commit dc32f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/html/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ func (r *Renderer) renderAttribute(w util.BufWriter, source []byte, n ast.Node)
} else if !c.HasChildren() {
r.Writer.Write(w, c.Text(source))
if t, ok := c.(*ast.Text); ok && t.SoftLineBreak() {
w.WriteByte('\n')
_ = w.WriteByte('\n')
}
} else {
r.renderAttribute(w, source, c)
Expand Down

0 comments on commit dc32f35

Please sign in to comment.