Skip to content

Commit a52242d

Browse files
committed
Add an example of center-justifying one column
1 parent 93fc641 commit a52242d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/rich_tables.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def do_countries(self, _: cmd2.Statement) -> None:
109109
justify = "right"
110110
case gdp if 'GDP' in gdp:
111111
justify = "right"
112+
case flag if 'Flag' in flag:
113+
justify = "center"
112114
case _:
113115
justify = "left"
114116

0 commit comments

Comments
 (0)