adasilva / prettytable

code.google.com/p/prettytable with extra formatting options
Other
1 stars 2 forks source link

Options not actually used in formatting rows #70

Open adasilva opened 8 years ago

adasilva commented 8 years ago

e.g. using get_string(float_format = '0.2') does not actually format the floats. (Expected behavior: floats are rounded to two decimal places.) This is because the _format_row method does not use the options it is passed:

def _format_row(self, row, options):
    return [self._format_value(field, value) for (field, value) in zip(self._field_names, row)]