reuse-tool icon indicating copy to clipboard operation
reuse-tool copied to clipboard

annotate changes line endings from LF to CRLF for some files

Open apteryks opened this issue 2 years ago • 3 comments

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 avatar Dec 06 '23 01:12 apteryks

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>

apteryks avatar Dec 06 '23 01:12 apteryks