Commits

edgimar  committed bf1545a

- Use asterisks to indicate task indentation (i.e. using org-mode format)

  • Participants
  • Parent commits b6e5378

Comments (0)

Files changed (1)

File michel/michel.py

         """Returns the sequence of lines of the string representation"""
         res = []
         for subtask in self.subtasks:
-            indentations = '\t'.join(['' for i in range(level + 1)])
+            #indentations = '\t' * level
+            # add number of asterisks corresponding to depth of task
+            indentations = '*' * (level+1) + " "
             res.append(indentations + subtask.title)
             subtasks_lines = subtask._lines(level + 1)
             res += subtasks_lines