mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-10-28 20:18:16 -04:00
Fix prefixing first paragraph with a newline, when there's no previous sibling node
This commit is contained in:
1 parent
a16d2a53b1
commit
27f86be69a
7 files changed
+7
-7
No files matched your search
+3
-1
@@ -62,7 +62,9 @@ func (tr *ANSIRenderer) NewElement(node ast.Node, source []byte) Element {
|
||||
return Element{}
|
||||
}
|
||||
return Element{
|
||||
Renderer: &ParagraphElement{},
|
||||
Renderer: &ParagraphElement{
|
||||
First: node.PreviousSibling() == nil,
|
||||
},
|
||||
Finisher: &ParagraphElement{},
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user