Lines Matching refs:lines
153 def run(self, lines): argument
154 lines = self._handleFootnoteDefinitions(lines)
155 text = "\n".join(lines)
158 def _handleFootnoteDefinitions(self, lines): argument
169 i, id, footnote = self._findFootnoteDefinition(lines)
172 plain = lines[:i]
173 detabbed, theRest = self.detectTabbed(lines[i+1:])
180 return lines
182 def _findFootnoteDefinition(self, lines): argument
196 for line in lines:
203 def detectTabbed(self, lines): argument
223 for line in lines:
231 return items, lines[i:]
237 for j in range(i, len(lines)):
238 if lines[j].strip():
239 next_line = lines[j]; break
252 return items, lines[i:]