original_docstring: Produces the HTML document wrapper for a text/html response.
docstring: Produces the HTML document wrapper for a text/html response.
docstring_tokens: Produces the HTML document wrapper for a text / html response .
code: def build_html_document(body, title=None):
    """Produces the HTML document wrapper for a text/html response."""
    title_html = '<h1>{0}</h1>\n'.format(title) if title else ''
    html = ['<html>', '<head>',
            '<title>{title}</title>'.format(title=title),
            '<style>',
  """
    body { font-size:10pt }
    table { font-size:10pt;border-width:none;
            border-spacing:0px;border-color:#F8F8F8;border-style:solid }
    th, td { padding:2px;vertical-align:top;
             border-width:1px;border-color:#F8F8F8;border-style:solid; }
    th { font-weight:bold;text-align:left;font-family:times }
    th { color:#666666 }
    a, a.toggle:link, a.toggle:visited {
        background-color:#FFFFFF;color:#000099 }
    a.toggle:hover, a.toggle:active {
        color:#FFFFFF;background-color:#000099 }
  """
            '</style>'
            '</head>', '<body>',
            title_html,
            body,
            '</body>', '</html>']
    return '\n'.join(html)
code_tokens: def build_html_document ( body , title = None ) : title_html = '<h1>{0}</h1>\n' . format ( title ) if title else '' html = [ '<html>' , '<head>' , '<title>{title}</title>' . format ( title = title ) , '<style>' , """
    body { font-size:10pt }
    table { font-size:10pt;border-width:none;
            border-spacing:0px;border-color:#F8F8F8;border-style:solid }
    th, td { padding:2px;vertical-align:top;
             border-width:1px;border-color:#F8F8F8;border-style:solid; }
    th { font-weight:bold;text-align:left;font-family:times }
    th { color:#666666 }
    a, a.toggle:link, a.toggle:visited {
        background-color:#FFFFFF;color:#000099 }
    a.toggle:hover, a.toggle:active {
        color:#FFFFFF;background-color:#000099 }
  """ '</style>' '</head>' , '<body>' , title_html , body , '</body>' , '</html>' ] return '\n' . join ( html )
short_docstring: Produces the HTML document wrapper for a text/html response.
short_docstring_tokens: Produces the HTML document wrapper for a text / html response .
comment: """Produces the HTML document wrapper for a text/html response."""