doc(layout): fix unrecognized codebloc

Without the two `::`, the following codebloc is not recognized as a codebloc and
the formatting was weird.
This commit is contained in:
polyedre 2021-05-15 13:31:30 +02:00
parent 7d02d29ba8
commit 285937f3fa
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ This will draw a box the size of the terminal with some information regarding th
)
print(layout)
This will divide the terminal screen in to two equal sized portions, one on top of the other. The ``name`` attribute is an internal identifier we can use to look up the sub-layout later. Let's use that to create another split, this time we will call :meth:`~rich.layout.Layout.split_row` to split the lower layout in to a row of two sub-layouts.
This will divide the terminal screen in to two equal sized portions, one on top of the other. The ``name`` attribute is an internal identifier we can use to look up the sub-layout later. Let's use that to create another split, this time we will call :meth:`~rich.layout.Layout.split_row` to split the lower layout in to a row of two sub-layouts::
layout["lower"].split_row(
Layout(name="left"),