refactor: Adjust padding in NoInsetCodeBlock syntax rendering

This commit is contained in:
Paul Gauthier 2025-03-17 21:17:02 -07:00 committed by Paul Gauthier (aider)
parent f89dabbd0a
commit 67bdccbda6

View file

@ -52,8 +52,7 @@ class NoInsetCodeBlock(CodeBlock):
def __rich_console__(self, console, options):
code = str(self.text).rstrip()
dump(code)
syntax = Syntax(code, self.lexer_name, theme=self.theme, word_wrap=True, padding=0)
syntax = Syntax(code, self.lexer_name, theme=self.theme, word_wrap=True, padding=(1, 0))
yield syntax