Fix diff download for patches with Windows line endings

Review Request #10090 — Created July 16, 2018 and updated

Information

Review Board
release-3.0.x
ff31930...

Reviewers

Review Board normalizes line endings to LF. This is a problem on Windows
where files have CRLF line endings. A downloaded raw diff file should
have the same line endings as the uploaded diff.

Bugs closed: 2916

Sucessfully ran unit tests.

easyb
easyb
easyb
Review request changed
easyb
  1. 
      
  2. reviewboard/diffviewer/models.py (Diff revision 3)
     
     

    The DileDiff.diff property is not only called when downloading diffs. Is this a problem? Alternatively, we could introduce a new property.

  3. 
      
Loading...