Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(syntax): include padding with background color override
  • Loading branch information
TomJGooding committed Feb 29, 2024
commit e08d717a51cf03bea1d4e936005c3e034c7070b5
4 changes: 1 addition & 3 deletions rich/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,7 @@ def __rich_console__(
) -> RenderResult:
segments = Segments(self._get_syntax(console, options))
if self.padding:
yield Padding(
segments, style=self._theme.get_background_style(), pad=self.padding
)
yield Padding(segments, style=self._get_base_style(), pad=self.padding)
else:
yield segments

Expand Down