Find and return another piece of converted output.
(self)
| 141 | return p < len(t) and t[p] or None |
| 142 | |
| 143 | def next(self): |
| 144 | """Find and return another piece of converted output.""" |
| 145 | if self.pos >= len(self.tex): |
| 146 | raise StopIteration |
| 147 | nextoutput = self.chunk() |
| 148 | if self.lastoutput[0] == '\\' and self.lastoutput[-1].isalpha() and nextoutput[0].isalpha(): |
| 149 | nextoutput = ' ' + nextoutput # add extra space to terminate csname |
| 150 | self.lastoutput = nextoutput |
| 151 | return nextoutput |
| 152 | |
| 153 | def chunk(self): |
| 154 | """Grab another set of input tokens and convert them to an output string.""" |
no test coverage detected