Skip to content

Commit

Permalink
omit CR from CRLF at EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Mar 25, 2024
1 parent 35818a7 commit 044ed8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileReader.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function find_newline(reader::BufferedReader, state::Int)

@inbounds for i in (state + 1):reader.tot_alloc
if reader.arr[i] == 0x0a
return cur_stop:i-1, i
return cur_stop:(i > 1 && reader.arr[i-1] == 0x0d ? i-2 : i-1), i
end
end

Expand Down

0 comments on commit 044ed8f

Please sign in to comment.