~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to colordiff.py

  • Committer: Aaron Bentley
  • Date: 2007-06-11 05:08:34 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20070611050834-wcbta2pfitcuopku
fix long-line detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        elif isinstance(item, InsertLine):
109
109
            if item.contents.endswith(' \n'):
110
110
                self.added_trailing_whitespace += 1
111
 
            if (len(item.contents.rstrip('\n')) >= self.max_line_len and
 
111
            if (len(item.contents.rstrip('\n')) > self.max_line_len and
112
112
                not item.contents.startswith('++ ')):
113
113
                self.long_lines += 1
114
114
            line_class = 'newtext'