Fix widths in ansi.py main color dumper.
authorScott Gasch <[email protected]>
Thu, 8 Jun 2023 17:45:03 +0000 (10:45 -0700)
committerScott Gasch <[email protected]>
Thu, 8 Jun 2023 17:45:03 +0000 (10:45 -0700)
src/pyutils/ansi.py

index a60200fb955b1e37a3fe1388633b7bc87cd6e5b9..b418832fc34b319dfc191f4f73e7517b0bc21c46 100755 (executable)
@@ -2330,8 +2330,8 @@ if __name__ == '__main__':
                 xf = fg(None, _[0], _[1], _[2])
                 xb = bg(None, _[0], _[1], _[2])
                 print(
-                    f'{f}{xb}{possibility}{reset()}\t\t\t'
-                    f'{b}{xf}{possibility}{reset()}'
+                    f'{f}{xb}{possibility:<40}{reset()}'
+                    f'{b}{xf}{possibility:<40}{reset()}'
                 )
 
     main()