Don't hardcode black box spacing values.
This commit is contained in:
parent
4f354ab291
commit
a9b34278a8
4
av98.py
4
av98.py
|
@ -1445,8 +1445,10 @@ current gemini browsing session."""
|
|||
lines.append(("Cache hits:", self.log["cache_hits"]))
|
||||
lines.append(("Redirects followed:", self.log["redirects_followed"]))
|
||||
# Print
|
||||
ljust = max((len(k) for k,v in lines))
|
||||
rjust = max((len(str(v)) for k,v in lines))
|
||||
for key, value in lines:
|
||||
print(key.ljust(24) + str(value).rjust(8))
|
||||
print(key.ljust(ljust+4) + str(value).rjust(rjust))
|
||||
|
||||
### The end!
|
||||
def do_quit(self, *args):
|
||||
|
|
Loading…
Reference in New Issue