Lines Matching defs:html
12 format - 'text' or 'html' controls the output format
15 and the output format is 'html' (for backwards compatibility with the
35 from html import escape as html_escape
43 Content-Type: text/html
106 def html(einfo, context=5):
132 link = '<a href="file://%s">%s</a>' % (file, pydoc.html.escape(file))
138 call = 'in ' + strong(pydoc.html.escape(func))
141 formatvalue=lambda value: '=' + pydoc.html.repr(value))
157 line = '<tt>=>%s%s</tt>' % (num, pydoc.html.preformat(line))
160 line = '<tt> %s%s</tt>' % (num, pydoc.html.preformat(line))
175 dump.append('%s = %s' % (name, pydoc.html.repr(value)))
184 exception = ['<p>%s: %s' % (strong(pydoc.html.escape(str(etype))),
185 pydoc.html.escape(str(evalue)))]
188 value = pydoc.html.repr(getattr(evalue, name))
200 ''' % pydoc.html.escape(
273 format="html"):
285 if self.format == "html":
288 formatter = (self.format=="html") and html or text
298 doc = pydoc.html.escape(doc)
306 suffix = ['.txt', '.html'][self.format=="html"]
316 if self.format == 'html':
325 def enable(display=1, logdir=None, context=5, format="html"):