From 15f4dd90d2f6c2463ccbc37c3069b98049a57786 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 19 2016 22:08:25 +0000 Subject: Let's ignore the '=' signs as well when viewing a commit --- diff --git a/pagure/ui/filters.py b/pagure/ui/filters.py index d9201fe..f64cfb6 100644 --- a/pagure/ui/filters.py +++ b/pagure/ui/filters.py @@ -295,14 +295,14 @@ def patch_to_diff(patch): for line in hunk.lines: if hasattr(line, 'content'): origin = line.origin - if line.origin in ['<', '>']: + if line.origin in ['<', '>', '=']: origin = '' content = content + origin + ' '+ line.content else: # Avoid situation where at the end of a file we get: # + foo< # \ No newline at end of file - if line[0] == '<': + if line[0] in ['<', '>', '=']: line = ('', line[1]) content = content + ' '.join(line)