fsfe / reuse-tool

reuse is a tool for compliance with the REUSE recommendations.
https://reuse.software
412 stars 150 forks source link

annotate changes line endings from LF to CRLF for some files #876

Open Apteryks opened 11 months ago

Apteryks commented 11 months ago

Hi,

Working with this file: https://github.com/scheme-requests-for-implementation/srfi-160/blob/master/srfi-160.html

I was surprised that running a command such as reuse annotate -c 'Author' -l MIT -y 2018 srfi-160.html would have the line endings changed from LF to CRLF.

Before running the command:

$ file srfi-160.html 
srfi-160.html: HTML document, ASCII text, with very long lines (606), with CRLF, LF line terminators

After:

$ file srfi-160.html
srfi-160.html: HTML document, ASCII text, with very long lines (606), with CRLF line terminators
Apteryks commented 11 months ago

Apparently this happens because thes two lines had CRLF line endings. Reuse should ideally preserve the line endings instead of rewriting them to an arbitrarily chosen CRLF.

@@ -452,8 +458,8 @@ elements of <i>@vec</i>.</p>

 <p>Returns a list of @vectors, each of which contains <i>n</i>
 consecutive elements of <i>@vec</i>.
-The last @vector may be shorter than <i>n</i>.  It is an error if
-<i>n</i> is not an exact positive integer.</p>
+The last @vector may be shorter than <i>n</i>.  It is an error if
+<i>n</i> is not an exact positive integer.</p>

 <p><code>(@vector-fold <i>kons knil @vec @vec2 ...</i>) -&gt; object</code> [SRFI 133]</p>