Adds some text, no newline will be appended. The text can be indented with the optional argument 'indent'.
(self, txt, indent=0)
| 848 | self.add(txt + "\n", indent) |
| 849 | |
| 850 | def add(self, txt, indent=0): |
| 851 | """Adds some text, no newline will be appended. |
| 852 | |
| 853 | The text can be indented with the optional argument 'indent'. |
| 854 | """ |
| 855 | self.text.append("{0}{1}".format(" " * indent, txt)) |
| 856 | |
| 857 | def add_header(self, txt): |
| 858 | """Adds a header element.""" |
no outgoing calls
no test coverage detected