sqlparse
sqlparse copied to clipboard
LFs are replaced by CRLF
I am using Atom on my Windows Laptop. I found every time I do a formatting, sqlformatter replaces my pre-set LF line ending to CRLF which is the platform default.
This is an issue related to the behavior of sys.stdout which is set here. I believe setting it to sys.stdout.buffer might resolve the issue