'Create HTML table, used for displaying peek'

def make_html_table(self, dataset, **kwargs):

    out = ['<table    cellspacing="0"    cellpadding="3">']
    try:
        out.append(self.make_html_peek_header(dataset, **kwargs))
        out.append(self.make_html_peek_rows(dataset, **kwargs))
        out.append('</table>')
        out = ''.join(out)
    except Exception as exc:
        out = ("Can't    create    peek    %s" % str(exc))
    return out
