Skip to content
Snippets Groups Projects
Commit 56d20d09 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Truncate jsondiff differences at 512 bytes, lest they consume the entire page.

parent b419df43
No related branches found
No related tags found
No related merge requests found
Pipeline #215075 passed
......@@ -95,6 +95,8 @@ class JSONFile(File):
difference.add_comment(f"Similarity: {similarity}%")
differences = pprint.pformat(diff, width=100)
if len(differences) > 512:
differences = f"{differences[:512]} […]"
difference.add_comment(f"Differences: {differences}")
@staticmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment