mirror of
https://github.com/usestrix/strix.git
synced 2026-09-07 08:25:56 +00:00
fix: Remove indentation prefix from diff code block markers for syntax highlighting
This commit is contained in:
parent
d6e9b3b7cf
commit
305ae2f699
1 changed files with 4 additions and 4 deletions
|
|
@ -366,14 +366,14 @@ class Tracer:
|
|||
f.write(f" ```\n {loc['snippet']}\n ```\n")
|
||||
if loc.get("fix_before") or loc.get("fix_after"):
|
||||
f.write("\n **Suggested Fix:**\n")
|
||||
f.write(" ```diff\n")
|
||||
f.write("```diff\n")
|
||||
if loc.get("fix_before"):
|
||||
for line in loc["fix_before"].splitlines():
|
||||
f.write(f" - {line}\n")
|
||||
f.write(f"- {line}\n")
|
||||
if loc.get("fix_after"):
|
||||
for line in loc["fix_after"].splitlines():
|
||||
f.write(f" + {line}\n")
|
||||
f.write(" ```\n")
|
||||
f.write(f"+ {line}\n")
|
||||
f.write("```\n")
|
||||
f.write("\n")
|
||||
|
||||
if report.get("remediation_steps"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue