Print a table without margin/padding #3150
-
I'm trying to print a table without margin/padding. With from rich.table import Table
from rich import print
table = Table(box=None, padding=0)
table.add_row("a", "b")
print("x")
print(table)
print("y") I'm getting
How to get rid of the top margin? |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Oct 11, 2023
Replies: 1 comment
-
I think that margin is the header, which happens to be empty. Try |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nschloe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that margin is the header, which happens to be empty. Try
show_header=False