Increased text wrapping safety tolerance

This commit is contained in:
2022-03-02 03:53:36 -05:00
parent 19d37dfdb6
commit 8cac27c6f6
+2 -2
View File
@@ -29,7 +29,7 @@ def entry_list_gen(): # generates and prints a list of all folders and entries
if _real <= get_terminal_size()[0]:
_width = len(' '.join(_entry_list))
else:
_width = (len(' '.join(_entry_list)) / (_real / get_terminal_size()[0]) - 25)
_width = (len(' '.join(_entry_list)) / (_real / get_terminal_size()[0]) - 50)
print(fill(' '.join(_entry_list), width=_width))
for _root, _directories, _files in walk(path.expanduser('~/.password-pasture')):
for _dir in _directories:
@@ -48,7 +48,7 @@ def entry_list_gen(): # generates and prints a list of all folders and entries
if _real <= get_terminal_size()[0]:
_width = len(' '.join(_entry_list))
else:
_width = (len(' '.join(_entry_list))/(_real/get_terminal_size()[0]) - 25)
_width = (len(' '.join(_entry_list))/(_real/get_terminal_size()[0]) - 50)
print(fill(' '.join(_entry_list), width=_width))