fix a table display bug
This commit is contained in:
parent
d0adfab4de
commit
811a573687
4
uml.py
4
uml.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue