python-format-js icon indicating copy to clipboard operation
python-format-js copied to clipboard

"{:=10d}}".format(-14) not working

Open volkerdobler opened this issue 1 year ago • 0 comments

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

volkerdobler avatar May 01 '24 13:05 volkerdobler