Fix more of #2133 \r\r\n line endings.
This commit is contained in:
Родитель
8f4d5ece6d
Коммит
568a70776f
3
emcc
3
emcc
|
@ -1669,6 +1669,9 @@ try:
|
|||
logging.debug('applying pre/postjses')
|
||||
src = open(final).read()
|
||||
final += '.pp.js'
|
||||
if WINDOWS: # Avoid duplicating \r\n to \r\r\n when writing out.
|
||||
if pre_js: pre_js = pre_js.replace('\r\n', '\n')
|
||||
if post_js: post_js = post_js.replace('\r\n', '\n')
|
||||
open(final, 'w').write(pre_js + src + post_js)
|
||||
if DEBUG: save_intermediate('pre-post')
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче