(self, remainder=None)
| 90 | self._replace(text, start) |
| 91 | |
| 92 | def resume(self, remainder=None): |
| 93 | if not self._nested: |
| 94 | raise Exception('no nested text to resume') |
| 95 | if self._current is None: |
| 96 | raise Exception('un-nesting requires active source text') |
| 97 | if remainder is None: |
| 98 | remainder = self._current.text |
| 99 | self._clear() |
| 100 | self._current = self._nested.pop() |
| 101 | self._current.text += ' ' + remainder |
| 102 | self._set_ready() |
| 103 | |
| 104 | def advance(self, remainder, start=None): |
| 105 | if self._current is None: |
no test coverage detected