diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 56cee3023..000000000 --- a/.gitattributes +++ /dev/null @@ -1,12 +0,0 @@ -*.c text -*.cpp text -*.h text -*.cmake text -*.py text -*.txt text -*.sh text -*.vcxproj text eol=crlf -*.sln text eol=crlf -*.filters text eol=crlf -*.appxmanifest text eol=crlf -*.pbxproj text diff --git a/cmake/xxd.py b/cmake/xxd.py index 5254cd1f7..678946ae6 100755 --- a/cmake/xxd.py +++ b/cmake/xxd.py @@ -17,7 +17,7 @@ def main(): binary_data = args.input.open("rb").read() - with args.output.open("w") as fout: + with args.output.open("w", newline="\n") as fout: fout.write("unsigned char {}[] = {{\n".format(varname)) bytes_written = 0 while bytes_written < len(binary_data):