Fix error rendering
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
@@ -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})',
|
||||
|
||||
Reference in New Issue
Block a user