Commit c9e1cd0d authored by Bram Schoenmakers's avatar Bram Schoenmakers

Also make sure that child items are printed in a deterministic order

parent 6a474492
...@@ -111,7 +111,7 @@ class DotPrinter(Printer): ...@@ -111,7 +111,7 @@ class DotPrinter(Printer):
children = set(p_todos) & set(self.todolist.children(todo, children = set(p_todos) & set(self.todolist.children(todo,
p_only_direct=True)) p_only_direct=True))
for child in children: for child in sorted(list(children), key=lambda t: t.text()):
result += ' {} -> {}\n'.format( result += ' {} -> {}\n'.format(
node_name(todo), node_name(todo),
node_name(child) node_name(child)
......
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