From edae0cfffbb163bd3cc8e8174cd62dc47b9d88f6 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Sun, 30 Oct 2022 20:47:47 -0600 Subject: [PATCH 1/2] docs: fix code alignment in example usage --- docs/source/usage.rst | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index a99bb49..04c2532 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -100,21 +100,21 @@ Use a preset style +----------+----------+----------+----------+ """ - output = table2ascii( - header=["First", "Second", "Third", "Fourth"], - body=[["10", "30", "40", "35"], ["20", "10", "20", "5"]], - style=PresetStyle.plain, - cell_padding=0, - alignments=[Alignment.LEFT] * 4, - ) - - print(output) - - """ - First Second Third Fourth - 10 30 40 35 - 20 10 20 5 - """ + output = table2ascii( + header=["First", "Second", "Third", "Fourth"], + body=[["10", "30", "40", "35"], ["20", "10", "20", "5"]], + style=PresetStyle.plain, + cell_padding=0, + alignments=[Alignment.LEFT] * 4, + ) + + print(output) + + """ + First Second Third Fourth + 10 30 40 35 + 20 10 20 5 + """ Define a custom style ~~~~~~~~~~~~~~~~~~~~~ From 896d357ab6ce02e0e899c8899bcec6b02b4f5072 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Sun, 30 Oct 2022 20:49:38 -0600 Subject: [PATCH 2/2] remove extra spaces --- docs/source/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 04c2532..9b43dbd 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -107,9 +107,9 @@ Use a preset style cell_padding=0, alignments=[Alignment.LEFT] * 4, ) - + print(output) - + """ First Second Third Fourth 10 30 40 35 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy