Merge pull request #198 from S0Ulle33/master

Fix doc
This commit is contained in:
Will McGugan 2020-08-01 13:24:20 +01:00 committed by GitHub
commit 977dbcfebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ To draw a border around any content, construct a :class:`~rich.panel.Panel` with
You can change the style of the panel by setting the ``box`` argument to the Panel constructor. See :ref:`appendix_box` for a list of available box styles.
Panels will extend to the full width of the terminal. You can make panel *fit* the content why setting ``fit=True`` on the constructor, or by creating the Panel with :meth:`~rich.panel.Panel.fit`. For example::
Panels will extend to the full width of the terminal. You can make panel *fit* the content by setting ``expand=False`` on the constructor, or by creating the Panel with :meth:`~rich.panel.Panel.fit`. For example::
from rich import print
from rich.panel import Panel
@ -21,4 +21,4 @@ The Panel constructor accepts a ``title`` argument which will draw a title withi
from rich.panel import Panel
print(Panel("Hello, [red]World!", title="Welcome"))
See :class:`~rich.panel.Panel` for details how to customize Panels.
See :class:`~rich.panel.Panel` for details how to customize Panels.