Skip to content

Commit

Permalink
Fix background color on matrix command (#4133)
Browse files Browse the repository at this point in the history
Fixes: #4123
  • Loading branch information
ssbarnea authored Feb 8, 2024
1 parent 22c1a0e commit 14dc007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/molecule/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@ def bool2args(data: bool) -> list[str]:

def print_as_yaml(data: Any) -> None:
"""Render python object as yaml on console."""
result = Syntax(safe_dump(data), "yaml")
# https://github.com/Textualize/rich/discussions/990#discussioncomment-342217
result = Syntax(code=safe_dump(data), lexer="yaml", background_color="default")
console.print(result)

0 comments on commit 14dc007

Please sign in to comment.