示例#1
0
 def visit_Text(self, node):
     if self.verbatim is not None:
         self.verbatim += node.astext()
     else:
         text = self.encode(node.astext())
         if '\\textasciitilde{}' in text:
             text = text.replace('\\textasciitilde{}', '~')
         if not self.no_contractions:
             text = educate_quotes_latex(text)
         self.body.append(text)
示例#2
0
 def visit_Text(self, node):
     if self.verbatim is not None:
         self.verbatim += node.astext()
     else:
         text = self.encode(node.astext())
         if '\\textasciitilde{}' in text:
             text = text.replace('\\textasciitilde{}', '~')
         if not self.no_contractions:
             text = educate_quotes_latex(text)
         self.body.append(text)
示例#3
0
 def visit_Text(self, node):
     if hasattr(self, "verbatim"):
         self.verbatim += node.astext()
     else:
         text = self.encode(node.astext())
         if "\\textasciitilde{}" in text:
             text = text.replace("\\textasciitilde{}", "~")
         if not self.no_contractions:
             text = educate_quotes_latex(text)
         self.body.append(text)