Format an HTML page.
(self, title, contents)
| 2447 | class _HTMLDoc(HTMLDoc): |
| 2448 | |
| 2449 | def page(self, title, contents): |
| 2450 | """Format an HTML page.""" |
| 2451 | css_path = "pydoc_data/_pydoc.css" |
| 2452 | css_link = ( |
| 2453 | '<link rel="stylesheet" type="text/css" href="%s">' % |
| 2454 | css_path) |
| 2455 | return '''\ |
| 2456 | <!DOCTYPE> |
| 2457 | <html lang="en"> |
| 2458 | <head> |
| 2459 | <meta charset="utf-8"> |
| 2460 | <title>Pydoc: %s</title> |
| 2461 | %s</head><body>%s<div style="clear:both;padding-top:.5em;">%s</div> |
| 2462 | </body></html>''' % (title, css_link, html_navbar(), contents) |
| 2463 | |
| 2464 | |
| 2465 | html = _HTMLDoc() |
nothing calls this directly
no test coverage detected