mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 22:54:28 -05: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:
@@ -200,7 +200,7 @@ def markdown_check_result(result: Result) -> str:
|
||||
lines.extend(
|
||||
markdown_project_section(
|
||||
title="error",
|
||||
content=f"```\n{error}```",
|
||||
content=f"```\n{str(error).strip()}\n```",
|
||||
options=project.check_options,
|
||||
project=project,
|
||||
)
|
||||
|
||||
@@ -84,7 +84,7 @@ def markdown_format_result(result: Result) -> str:
|
||||
lines.extend(
|
||||
markdown_project_section(
|
||||
title="error",
|
||||
content=f"```\n{error}```",
|
||||
content=f"```\n{str(error).strip()}\n```",
|
||||
options=project.format_options,
|
||||
project=project,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user