diff --git a/kittens/diff/highlight.py b/kittens/diff/highlight.py index c03ee639b..da7650cde 100644 --- a/kittens/diff/highlight.py +++ b/kittens/diff/highlight.py @@ -57,7 +57,7 @@ class DiffFormatter(Formatter): def format(self, tokensource, outfile): for ttype, value in tokensource: not_found = True - if value != '\n': + if value.rstrip('\n'): while ttype and not_found: tok = self.styles.get(ttype) if tok is None: