Skip to content

Commit

Permalink
Update padding.rst
Browse files Browse the repository at this point in the history
Typo 
with -> width
  • Loading branch information
DevGrohl authored Apr 25, 2021
1 parent e427168 commit 117b598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/padding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For example, the following displays 2 blank lines above and below the text, and
test = Padding("Hello", (2, 4))
print(test)

The Padding class can also accept a ``style`` argument which applies a style to the padding and contents, and an ``expand`` switch which can be set to False to prevent the padding from extending to the full with of the terminal. Here's an example which demonstrates both these arguments::
The Padding class can also accept a ``style`` argument which applies a style to the padding and contents, and an ``expand`` switch which can be set to False to prevent the padding from extending to the full width of the terminal. Here's an example which demonstrates both these arguments::

from rich import print
from rich.padding import Padding
Expand Down

0 comments on commit 117b598

Please sign in to comment.