mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
Ensure ecosystem project errors are properly fenced (#8516)
Fixes bug where errors could be unfenced resulting in hidden remaining content e.g. https://github.com/astral-sh/ruff/pull/8508#issuecomment-1794960132
This commit is contained in:
parent
5e2bb8ca07
commit
311a7751f9
2 changed files with 2 additions and 2 deletions
|
@ -200,7 +200,7 @@ def markdown_check_result(result: Result) -> str:
|
||||||
lines.extend(
|
lines.extend(
|
||||||
markdown_project_section(
|
markdown_project_section(
|
||||||
title="error",
|
title="error",
|
||||||
content=f"```\n{error}```",
|
content=f"```\n{str(error).strip()}\n```",
|
||||||
options=project.check_options,
|
options=project.check_options,
|
||||||
project=project,
|
project=project,
|
||||||
)
|
)
|
||||||
|
|
|
@ -84,7 +84,7 @@ def markdown_format_result(result: Result) -> str:
|
||||||
lines.extend(
|
lines.extend(
|
||||||
markdown_project_section(
|
markdown_project_section(
|
||||||
title="error",
|
title="error",
|
||||||
content=f"```\n{error}```",
|
content=f"```\n{str(error).strip()}\n```",
|
||||||
options=project.format_options,
|
options=project.format_options,
|
||||||
project=project,
|
project=project,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue