python-format-js
python-format-js copied to clipboard
"{:=10d}}".format(-14) not working
Hello,
I really like the library, as it includes everything I need to format strings and numbers. But one option seems not to work, the formatting with "=".
As far as I understand python formatting correct (I am not a python programmer), the following should work: "{:=10d}".format(-14) '- 14'
and "{:=+10d}".format(14) '+ 14'
But if I tried it (with node version 20.12.2), I get:
"{:=10d}".format(-14) '=======-14'
and "{:+10d}".format(14) '++++++++14'
Am I doing anything wrong or is it a bug?
Best regards, Volker