mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Refactor: More f-string for kittens
This commit is contained in:
parent
4110074580
commit
4a3ed62809
18 changed files with 32 additions and 32 deletions
|
|
@ -192,7 +192,7 @@ class Table:
|
|||
if w < 2:
|
||||
text += ' ' * (2 - w)
|
||||
if len(desc) > space_for_desc:
|
||||
text += desc[:space_for_desc - 1] + '…'
|
||||
text += f'{desc[:space_for_desc - 1]}…'
|
||||
else:
|
||||
text += desc
|
||||
extra = space_for_desc - len(desc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue