Skip to content

Commit

Permalink
Fix a forest structure glitch after load
Browse files Browse the repository at this point in the history
Undue nesting marks rendered for the top level node.
  • Loading branch information
cvaroqui committed Dec 28, 2017
1 parent 31b8139 commit c851157
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,9 @@ def add_node(self):
return self.forest.add_node(parent_id=self.node_id)

def load(self, data, title=None):
head = self
if title:
head = self.add_node()
head.add_column(title, color.BOLD)
else:
head = self

def add_list(head, _data):
for val in _data:
Expand Down

0 comments on commit c851157

Please sign in to comment.