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:
3
emsdk.py
3
emsdk.py
@@ -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')
|
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)
|
version = get_emscripten_release_version(self.emscripten_releases_hash)
|
||||||
if version:
|
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) + "'.")
|
print("Done installing tool '" + str(self) + "'.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user