Example #1
0
 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('%', '%%')
Example #2
0
 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("%", "%%")