Skip to content

Commit 3a15f1a

Browse files
committed
Only apply style to the help header text instead of the entire row.
1 parent d6af09c commit 3a15f1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4134,7 +4134,7 @@ def print_topics(self, header: str, cmds: list[str] | None, cmdlen: int, maxcol:
41344134
# Print a row that looks like a table header.
41354135
if header:
41364136
header_grid = Table.grid()
4137-
header_grid.add_row(header, style=Cmd2Style.HELP_HEADER)
4137+
header_grid.add_row(Text(header, style=Cmd2Style.HELP_HEADER))
41384138
header_grid.add_row(Rule(characters=self.ruler, style=Cmd2Style.TABLE_BORDER))
41394139
self.poutput(header_grid)
41404140

@@ -4156,7 +4156,7 @@ def _print_documented_command_topics(self, header: str, cmds: list[str], verbose
41564156

41574157
# Create a grid to hold the header and the topics table
41584158
category_grid = Table.grid()
4159-
category_grid.add_row(header, style=Cmd2Style.HELP_HEADER)
4159+
category_grid.add_row(Text(header, style=Cmd2Style.HELP_HEADER))
41604160
category_grid.add_row(Rule(characters=self.ruler, style=Cmd2Style.TABLE_BORDER))
41614161

41624162
topics_table = Table(

0 commit comments

Comments
 (0)