forked from catchorg/Catch2
Ensure that the single header is kept with LFs
This commit is contained in:
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -9,3 +9,7 @@
|
|||||||
|
|
||||||
# Windows specific files should retain windows line-endings
|
# 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
|
||||||
|
@ -46,7 +46,7 @@ def generate(v):
|
|||||||
outDir = os.path.dirname(outputPath)
|
outDir = os.path.dirname(outputPath)
|
||||||
if not os.path.exists(outDir):
|
if not os.path.exists(outDir):
|
||||||
os.makedirs(outDir)
|
os.makedirs(outDir)
|
||||||
out = open( outputPath, 'w' )
|
out = open( outputPath, 'w', newline='\n' )
|
||||||
|
|
||||||
def write( line ):
|
def write( line ):
|
||||||
if globals['includeImpl'] or globals['implIfDefs'] == -1:
|
if globals['includeImpl'] or globals['implIfDefs'] == -1:
|
||||||
|
Reference in New Issue
Block a user