Closed riklopfer closed 2 years ago
The default style thousands separator is not behaving as expected.
from pytablewriter import MarkdownTableWriter from pytablewriter.style import Style def main(): table = MarkdownTableWriter( headers=("A", "B", "C"), value_matrix=[ ( "{:,.2%}".format(4000 / 3), 100000, "{:,}".format(100000) ) ], default_style=Style(thousand_separator=","), margin=1 ).dumps(flavor="github") print(table) if __name__ == '__main__': main()
Actual
| A | B | C | | ----------- | -----: | -----: | | 133,333.33% | 100000 | 100000 |
Expected
| A | B | C | | ----------- | ------: | ------: | | 133,333.33% | 100,000 | 100,000 |
@riklopfer Thank you for your report.
I believe the problem fixed at pytablewriter 0.64.2. Please try to upgrade the package and re-execute the program.
pytablewriter 0.64.2
@thombashi confirmed to be fixed! thanks :)
The default style thousands separator is not behaving as expected.
Actual
Expected