Skip to content

Float with comma formatting are mis-aligned #130

@mathieulongtin

Description

@mathieulongtin

When using commas in floatfmt, like ,.2f, alignment is off:

In [32]: print(tabulate([("a", 3456.321), ("b", 982.6513)], floatfmt=".2f"))
-  -------
a  3456.32
b   982.65
-  -------

In [33]: print(tabulate([("a", 3456.321), ("b", 982.6513)], floatfmt=",.2f"))
-  -----------
a  3,456.32
b       982.65
-  -----------

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions