mirror of
https://github.com/usestrix/strix.git
synced 2026-09-05 08:06:08 +00:00
fix: Remove indentation prefix from diff code block markers for syntax highlighting
This commit is contained in:
parent
c226d7405c
commit
b0d5b68c5c
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