From d1601f9636ef85e35c0f33c3ee1b46a12c2700ea Mon Sep 17 00:00:00 2001 From: polyedre Date: Sat, 15 May 2021 13:33:30 +0200 Subject: [PATCH] doc(layout): remove trailing spaces --- docs/source/layout.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/layout.rst b/docs/source/layout.rst index 7b19c8fd..f2309317 100644 --- a/docs/source/layout.rst +++ b/docs/source/layout.rst @@ -23,21 +23,21 @@ This will draw a box the size of the terminal with some information regarding th layout.split_column( Layout(name="upper"), Layout(name="lower") - ) + ) 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:: layout["lower"].split_row( Layout(name="left"), - Layout(name="right"), - ) + Layout(name="right"), + ) print(layout) You should now see the screen area divided in to 3 portions; an upper half and a lower half that is split in to two quarters. .. raw:: html - +
╭─────────────────────────────── 'upper' (84 x 13) ────────────────────────────────╮