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:
if len(k) > buf[c]: buf[c] = len(k)
c += 1
width = 0
for j in buf:
width += j
width = max(buf) * len(i.data.data[0])
width += 2 * len(i.data.data[0]) + 1
print("+" + "-" * width + "+")
# don't ask