Add newline at end of emscripten-version.txt (#812)

This file in in the repo itself contains a newline so we should match
that.  Also everybody knows that text files should end in a newline :)
This commit is contained in:
Sam Clegg
2021-05-04 16:51:19 -07:00
committed by GitHub
parent 33ce2bdf2c
commit dedf902193

View File

@@ -2079,7 +2079,8 @@ class Tool(object):
emscripten_version_file_path = os.path.join(to_native_path(self.expand_vars(self.activated_path)), 'emscripten-version.txt')
version = get_emscripten_release_version(self.emscripten_releases_hash)
if version:
open(emscripten_version_file_path, 'w').write('"%s"' % version)
with open(emscripten_version_file_path, 'w') as f:
f.write('"%s"\n' % version)
print("Done installing tool '" + str(self) + "'.")