background style, table width calculation

This commit is contained in:
Will McGugan 2020-10-15 21:17:03 +01:00
parent c98bf070e4
commit 05ce5105b4
14 changed files with 68 additions and 49 deletions

View file

@ -20,5 +20,5 @@ def test_rich_cast():
def test_rich_cast_container():
foo = Foo()
console = Console(file=io.StringIO(), legacy_windows=False)
console.print(Panel.fit(foo))
console.print(Panel.fit(foo, padding=0))
assert console.file.getvalue() == "╭───╮\n│Foo│\n╰───╯\n"