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
Prev Previous commit
Next Next commit
Add padding to Syntax constructor
  • Loading branch information
darrenburns committed May 3, 2022
commit 55d00e1e9e70c21dbbadf2280a0cb0c8ba8fc07a
2 changes: 2 additions & 0 deletions rich/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def __init__(
word_wrap: bool = False,
background_color: Optional[str] = None,
indent_guides: bool = False,
padding: int = 0,
) -> None:
self.code = code
self._lexer = lexer
Expand All @@ -258,6 +259,7 @@ def __init__(
Style(bgcolor=background_color) if background_color else Style()
)
self.indent_guides = indent_guides
self.padding = padding

self._theme = self.get_theme(theme)

Expand Down