'Create HTML table, used for displaying peek'

def make_html_table(self, dataset, skipchars=[]):

    try:
        out = '<table    cellspacing="0"    cellpadding="3">'
        out += '<tr>'
        out += ('<th>%d.    Name</th>' % 1)
        out += ('<th>%d.    Flows</th>' % 2)
        for i in range(3, (dataset.metadata.columns + 1)):
            base = dataset.metadata.flow_order[((i + 1) % 4)]
            out += ('<th>%d.    %d    %s</th>' % ((i - 2), base))
        out += '</tr>'
        out += self.make_html_peek_rows(dataset, skipchars=skipchars)
        out += '</table>'
    except Exception as exc:
        out = ("Can't    create    peek    %s" % str(exc))
    return out
