diff --git a/gatorgrade/output/check_result.py b/gatorgrade/output/check_result.py index 67a10f94..46fa8b19 100644 --- a/gatorgrade/output/check_result.py +++ b/gatorgrade/output/check_result.py @@ -40,7 +40,7 @@ def display_result(self, show_diagnostic: bool = False) -> str: icon_color = "green" if self.passed else "red" message = f"[{icon_color}]{icon}[/] {self.description}" if not self.passed and show_diagnostic: - message = f"[yellow] → {self.diagnostic}" + message += f"\n[yellow] → {self.diagnostic}" return message def __str__(self, show_diagnostic: bool = False) -> str: @@ -64,5 +64,5 @@ def print(self, show_diagnostic: bool = False) -> None: show_diagnostic: If true, show the diagnostic message if the check has failed. Defaults to false. """ - message = self.display_result() + message = self.display_result(show_diagnostic) rich.print(message)