Commits

edgimar committed 565fa9b

- ensure that sting representation of tree includes trailing linefeed
character, which is typical for text-files.

Comments (0)

Files changed (1)

 
     def __str__(self):
         """string representation of the tree"""
-        return '\n'.join(self._lines(0))
+        # always add a trailing "\n" because text-files normally include a "\n"
+        # at the end of the last line of the file.
+        return '\n'.join(self._lines(0)) + "\n"
 
 def get_service():
     """