Commit 16ab45de authored by ∞'s avatar 💻

Space around small content

parent 7964f69c
Pipeline #7934 failed with stages
in 22 seconds
......@@ -48,6 +48,9 @@ class Table(list):
if sumsize > size:
_ = sum([c.maxlength for c in self.columns[:-1]]) - len(self.columns)
self.columns[-1].maxlength = size - _ - len(self.columns) - 1
elif sumsize + len(self.columns) <= size and not self.header:
for column in self.columns:
column.maxlength += 1
if self.header:
line = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment