Exemplo n.º 1
0
 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))
Exemplo n.º 2
0
 def testCreation(self):
     include = raw_doc.RawInclude(self.path)
     self.assertEqual(include.path, self.path)
     self.assertEqual(include.getFormatted(self.formatter),
                      '@include apath\n')
Exemplo n.º 3
0
 def getEntry(self):
     return raw_doc.RawInclude(self.first_token, self.tokens)
Exemplo n.º 4
0
 def getEntry(self):
     return raw_doc.RawInclude(raw_doc.RawText(self.tokens))