Skip to content

Commit

Permalink
Fix off-by-one in compare links
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Feb 17, 2024
1 parent 0d35952 commit d01c866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/diff_all_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ def main():

print("")
print("")
id = val["name"].lower().replace(":", "__")
print(f'<details id="{id}"><summary><h2>{val["name"]}</h2></summary>')
print("")
if "error" in val:
print("Failed to generate diff:")
print(val["error"])
elif val["ratio"] != 1:
id = val["name"].lower().replace(":", "__")
print("```diff")
print(val["diff"])
print("```")
Expand Down

0 comments on commit d01c866

Please sign in to comment.