mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
table improvements
This commit is contained in:
parent
a7396aa6b8
commit
11c0022439
12 changed files with 76 additions and 21 deletions
|
@ -61,7 +61,7 @@ def render_tables():
|
|||
console.print(table)
|
||||
|
||||
table.width = 20
|
||||
assert Measurement.get(console, table, 80) == Measurement(46, 52)
|
||||
assert Measurement.get(console, table, 80) == Measurement(20, 20)
|
||||
console.print(table)
|
||||
|
||||
return console.file.getvalue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue