Fix new-line before first paragraph

This commit is contained in:
Christian Muehlhaeuser
2019-11-24 05:09:07 +01:00
parent 5191ed1f9c
commit f119aef232
+1 -1
View File
@@ -110,7 +110,7 @@ func NewElement(node *bf.Node) Element {
}
case bf.Paragraph:
pre := "\n"
if node.Parent != nil && node.Parent.Type == bf.Item {
if node.Prev == nil || (node.Parent != nil && node.Parent.Type == bf.Item) {
pre = ""
}