コード例 #1
0
ファイル: htmlwriter.py プロジェクト: lshmenor/IMTAphy
 def visit_Text(self, node):
     text = node.astext()
     encoded = self.encode(text)
     if self.in_mailto and self.settings.cloak_email_addresses:
         encoded = self.cloak_email(encoded)
     elif self.no_smarty <= 0:
         encoded = sphinx_smarty_pants(encoded)
     self.body.append(encoded)
コード例 #2
0
 def visit_Text(self, node):
     text = node.astext()
     encoded = self.encode(text)
     if self.in_mailto and self.settings.cloak_email_addresses:
         encoded = self.cloak_email(encoded)
     elif self.no_smarty <= 0:
         encoded = sphinx_smarty_pants(encoded)
     self.body.append(encoded)
コード例 #3
0
ファイル: html.py プロジェクト: evhub/sphinx
 def bulk_text_processor(self, text):
     if self.no_smarty <= 0:
         return sphinx_smarty_pants(text)
     return text
コード例 #4
0
 def bulk_text_processor(self, text):
     # type: (unicode) -> unicode
     if self.no_smarty <= 0:
         return sphinx_smarty_pants(text)
     return text
コード例 #5
0
ファイル: html5.py プロジェクト: nwf/sphinx
 def bulk_text_processor(self, text):
     # type: (unicode) -> unicode
     if self.no_smarty <= 0:
         return sphinx_smarty_pants(text)
     return text