summaryrefslogtreecommitdiff
path: root/paper/diffinator.py
diff options
context:
space:
mode:
Diffstat (limited to 'paper/diffinator.py')
-rw-r--r--paper/diffinator.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/paper/diffinator.py b/paper/diffinator.py
index be856e6..00a5b4f 100644
--- a/paper/diffinator.py
+++ b/paper/diffinator.py
@@ -64,6 +64,12 @@ def generate_git_tex_diff(texfile, bibliography, revision):
def suppress_small_changes(match):
old, _1, new, _2 = match.groups()
+ if len(old) < 12 and len(new) < 12:
+ return new
+
+ if old.count(' ') < 3 and new.count(' ') < 3:
+ return new
+
new_chars = list(new)
for char in old:
if char not in string.ascii_letters: