Ensure that the single header is kept with LFs

This commit is contained in:
Martin Hořeňovský 2018-01-18 12:35:40 +01:00
parent fa4fd7f296
commit f0f40a0dbf
2 changed files with 6 additions and 2 deletions

6
.gitattributes vendored
View File

@ -8,4 +8,8 @@
*.hpp text
# Windows specific files should retain windows line-endings
*.sln text eol=crlf
*.sln text eol=crlf
# Keep the single include header with LFs to make sure it is uploaded,
# hashed etc with LF
single_include/*.hpp eol=lf

View File

@ -46,7 +46,7 @@ def generate(v):
outDir = os.path.dirname(outputPath)
if not os.path.exists(outDir):
os.makedirs(outDir)
out = open( outputPath, 'w' )
out = open( outputPath, 'w', newline='\n' )
def write( line ):
if globals['includeImpl'] or globals['implIfDefs'] == -1: