'Return string, the table as text.'

def as_text(self, **fmt_dict):

    fmt = self._get_fmt('txt', **fmt_dict)
    formatted_rows = [row.as_string('text', **fmt) for row in self]
    rowlen = len(formatted_rows[(-1)])
    table_dec_above = fmt.get('table_dec_above', '=')
    if table_dec_above:
        formatted_rows.insert(0, (table_dec_above * rowlen))
    title = self.title
    if title:
        title = pad(self.title, rowlen, fmt.get('title_align', 'c'))
        formatted_rows.insert(0, title)
    table_dec_below = fmt.get('table_dec_below', '-')
    if table_dec_below:
        formatted_rows.append((table_dec_below * rowlen))
    return '\n'.join(formatted_rows)
