コード例 #1
0
ファイル: text_html_percent.py プロジェクト: aahlad/soar
 def _open(self, tag, newline=False, attr=None, allowed_attrs=None, **kw):
     """ Escape % characters in tags, see also text_html.Formatter._open. """
     tagstr = TextHtmlFormatter._open(self, tag, newline, attr,
                                      allowed_attrs, **kw)
     return tagstr.replace('%', '%%')
コード例 #2
0
ファイル: text_html_percent.py プロジェクト: Glottotopia/aagd
 def _open(self, tag, newline=False, attr=None, allowed_attrs=None, **kw):
     """ Escape % characters in tags, see also text_html.Formatter._open. """
     tagstr = TextHtmlFormatter._open(self, tag, newline, attr, allowed_attrs, **kw)
     return tagstr.replace("%", "%%")