'Return dict, the formatting options.'

def _get_fmt(self, output_format, **fmt_dict):

    output_format = get_output_format(output_format)
    try:
        fmt = default_fmts[output_format].copy()
    except KeyError:
        raise ValueError(('Unknown    format:    %s' % output_format))
    try:
        fmt.update(self.table.output_formats[output_format])
    except AttributeError:
        pass
    fmt.update(self._fmt)
    fmt.update(fmt_dict)
    special_fmt = self.special_fmts.get(output_format, None)
    if (special_fmt is not None):
        fmt.update(special_fmt)
    return fmt
