Skip to content

Commit 14dc007

Browse files
authored
Fix background color on matrix command (#4133)
Fixes: #4123
1 parent 22c1a0e commit 14dc007

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/molecule/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,5 +391,6 @@ def bool2args(data: bool) -> list[str]:
391391

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

0 commit comments

Comments
 (0)