Commit 981b108b authored by Bram Schoenmakers's avatar Bram Schoenmakers

Arrange items without dependencies vertically instead of horizontally

parent a8fb8489
......@@ -89,6 +89,12 @@ class DotPrinter(Printer):
node_name(child)
)
todos_without_dependencies = [todo for todo in p_todos if not self.todolist.children(todo) and not self.todolist.parents(todo)]
for index in range(0, len(todos_without_dependencies) - 1):
this_todo = todos_without_dependencies[index]
next_todo = todos_without_dependencies[index + 1]
result += ' {} -> {} [style="invis"]\n'.format(node_name(this_todo), node_name(next_todo))
# print legend
result += 'rank=sink\n'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment