Explicitly insert a newline into the output, maintaining correct indentation.
(self)
| 266 | self._break_outer_groups() |
| 267 | |
| 268 | def break_(self): |
| 269 | """ |
| 270 | Explicitly insert a newline into the output, maintaining correct indentation. |
| 271 | """ |
| 272 | group = self.group_queue.deq() |
| 273 | if group: |
| 274 | self._break_one_group(group) |
| 275 | self.flush() |
| 276 | self.output.write(self.newline) |
| 277 | self.output.write(' ' * self.indentation) |
| 278 | self.output_width = self.indentation |
| 279 | self.buffer_width = 0 |
| 280 | |
| 281 | |
| 282 | def begin_group(self, indent=0, open=''): |