(self)
| 139 | return draw_lines |
| 140 | |
| 141 | def get_wrapped_lines(self): |
| 142 | lines = [] |
| 143 | text = self.text |
| 144 | while text != "": |
| 145 | next_line = self.get_text_to_line_end(text) |
| 146 | lines.append(next_line) |
| 147 | text = text[len(next_line):] |
| 148 | |
| 149 | for i in range(1, len(lines)): |
| 150 | lines[i] = lines[i].strip() |
| 151 | return lines |
| 152 | |
| 153 | def get_text_to_line_end(self, text): |
| 154 | index = 1 |
no test coverage detected