Merge pull request #1398 from carltongibson/patch-3

Corrected typo in Padding docs.
This commit is contained in:
Will McGugan 2021-08-09 19:29:07 +01:00 committed by GitHub
commit 14693caf4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,4 +24,4 @@ The Padding class can also accept a ``style`` argument which applies a style to
test = Padding("Hello", (2, 4), style="on blue", expand=False)
print(test)
Note that, as with all Rich renderables, you can use Padding any context. For instance, if you want to emphasize an item in a :class:`~rich.table.Table` you could add a Padding object to a row with a padding of 1 and a style of "on red".
Note that, as with all Rich renderables, you can use Padding in any context. For instance, if you want to emphasize an item in a :class:`~rich.table.Table` you could add a Padding object to a row with a padding of 1 and a style of "on red".