Fix error rendering

This commit is contained in:
Zanie 2023-10-26 17:22:27 -05:00
parent 6f593cac68
commit a1bec32a7b
3 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ def markdown_check_result(result: Result) -> str:
lines.extend(
markdown_project_section(
title="error",
content=f"```\n{error.strip()}```",
content=f"```\n{error}```",
options=project.check_options,
project=project,
)

View File

@ -77,7 +77,7 @@ def markdown_format_result(result: Result) -> str:
lines.extend(
markdown_project_section(
title="error",
content=str(error),
content=f"```\n{error}```",
options=project.format_options,
project=project,
)

View File

@ -7,7 +7,7 @@ if TYPE_CHECKING:
def markdown_project_section(
title: str, content: str | list[str], options: str, project: Project
title: str, content: str | list[str], options: object, project: Project
) -> list[str]:
return markdown_details(
summary=f'<a href="{project.repo.url}">{project.repo.fullname}</a> ({title})',