forked from kenkeiras/org-rw
Indent list-group inside current node if part of a block.
This commit is contained in:
parent
28ddd3e44f
commit
bf10c51e61
@ -395,9 +395,12 @@ class Headline:
|
||||
or isinstance(current_node, dom.BlockNode)
|
||||
or isinstance(current_node, dom.DrawerNode)
|
||||
):
|
||||
was_node = current_node
|
||||
current_node = dom.ListGroupNode()
|
||||
if current_node is None:
|
||||
if was_node is None:
|
||||
tree.append(current_node)
|
||||
else:
|
||||
was_node.append(current_node)
|
||||
indentation_tree.append(current_node)
|
||||
if not isinstance(current_node, dom.ListGroupNode):
|
||||
if not isinstance(current_node, dom.ListGroupNode):
|
||||
|
Loading…
Reference in New Issue
Block a user