Skip to content

Commit d8bf8fc

Browse files
authored
docs: fix code alignment in example usage (#54)
1 parent 6d29538 commit d8bf8fc

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/source/usage.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -100,21 +100,21 @@ Use a preset style
100100
+----------+----------+----------+----------+
101101
"""
102102
103-
output = table2ascii(
104-
header=["First", "Second", "Third", "Fourth"],
105-
body=[["10", "30", "40", "35"], ["20", "10", "20", "5"]],
106-
style=PresetStyle.plain,
107-
cell_padding=0,
108-
alignments=[Alignment.LEFT] * 4,
109-
)
110-
111-
print(output)
112-
113-
"""
114-
First Second Third Fourth
115-
10 30 40 35
116-
20 10 20 5
117-
"""
103+
output = table2ascii(
104+
header=["First", "Second", "Third", "Fourth"],
105+
body=[["10", "30", "40", "35"], ["20", "10", "20", "5"]],
106+
style=PresetStyle.plain,
107+
cell_padding=0,
108+
alignments=[Alignment.LEFT] * 4,
109+
)
110+
111+
print(output)
112+
113+
"""
114+
First Second Third Fourth
115+
10 30 40 35
116+
20 10 20 5
117+
"""
118118
119119
Define a custom style
120120
~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)