Begin a group. The first parameter specifies the indentation for the next line (usually the width of the opening text), the second the opening text. All parameters are optional.
(self, indent=0, open='')
| 280 | |
| 281 | |
| 282 | def begin_group(self, indent=0, open=''): |
| 283 | """ |
| 284 | Begin a group. |
| 285 | The first parameter specifies the indentation for the next line (usually |
| 286 | the width of the opening text), the second the opening text. All |
| 287 | parameters are optional. |
| 288 | """ |
| 289 | if open: |
| 290 | self.text(open) |
| 291 | group = Group(self.group_stack[-1].depth + 1) |
| 292 | self.group_stack.append(group) |
| 293 | self.group_queue.enq(group) |
| 294 | self.indentation += indent |
| 295 | |
| 296 | def _enumerate(self, seq): |
| 297 | """like enumerate, but with an upper limit on the number of items""" |
no test coverage detected