Skip to content

Commit

Permalink
Merge pull request #113 from GatorEducator/bug/display-diagnosis
Browse files Browse the repository at this point in the history
bug: fix display diagnosis msg in terminal
  • Loading branch information
burgess01 authored Mar 3, 2023
2 parents 720312b + 368eadf commit cb9e465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatorgrade/output/check_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)

0 comments on commit cb9e465

Please sign in to comment.