~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to colordiff.py

  • Committer: Aaron Bentley
  • Date: 2007-02-06 20:03:20 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070206200320-jld1pb6rorh5ccat
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) > self.max_line_len:
 
111
            if len(item.contents.rstrip('\n')) > self.max_line_len:
112
112
                self.long_lines += 1
113
113
            line_class = 'newtext'
114
114
            self._new_lines.append(item)