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('%', '%%')
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("%", "%%")