Indent list-group inside current node if part of a block.

This commit is contained in:
Sergio Martínez Portela 2022-11-03 23:35:56 +01:00
parent 3be4475ddf
commit dbafafcba5

View File

@ -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):