def processFiles(self, entry, node): for text in node.texts: if text.startswith('../'): text = text[len('../'):] t = lexer.Token('WORD', text, 0, 0, 0) raw_text = raw_doc.RawText(translateTokens([t])) entry.addParagraph(raw_doc.RawInclude(raw_text))
def testCreation(self): include = raw_doc.RawInclude(self.path) self.assertEqual(include.path, self.path) self.assertEqual(include.getFormatted(self.formatter), '@include apath\n')
def getEntry(self): return raw_doc.RawInclude(self.first_token, self.tokens)
def getEntry(self): return raw_doc.RawInclude(raw_doc.RawText(self.tokens))