fix a table display bug

This commit is contained in:
randomuser 2021-06-30 17:31:45 -05:00
parent d0adfab4de
commit 811a573687
1 changed files with 1 additions and 3 deletions

4
uml.py
View File

@ -99,9 +99,7 @@ def renderer(chain):
for k in j: for k in j:
if len(k) > buf[c]: buf[c] = len(k) if len(k) > buf[c]: buf[c] = len(k)
c += 1 c += 1
width = 0 width = max(buf) * len(i.data.data[0])
for j in buf:
width += j
width += 2 * len(i.data.data[0]) + 1 width += 2 * len(i.data.data[0]) + 1
print("+" + "-" * width + "+") print("+" + "-" * width + "+")
# don't ask # don't ask