tools: fixed bug causing JSON format to be broken

PR-URL: https://github.com/nodejs/node/pull/41565
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
mawaregetsuka 2022-03-31 20:44:50 +08:00 committed by GitHub
parent 7319419787
commit 605a01bcfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1623,7 +1623,7 @@ def configure_intl(o):
# write an empty file to start with
write(icu_config_name, do_not_edit +
pprint.pformat(icu_config, indent=2) + '\n')
pprint.pformat(icu_config, indent=2, width=1024) + '\n')
# always set icu_small, node.gyp depends on it being defined.
o['variables']['icu_small'] = b(False)
@ -1875,7 +1875,7 @@ def configure_intl(o):
# write updated icu_config.gypi with a bunch of paths
write(icu_config_name, do_not_edit +
pprint.pformat(icu_config, indent=2) + '\n')
pprint.pformat(icu_config, indent=2, width=1024) + '\n')
return # end of configure_intl
def configure_inspector(o):
@ -2004,7 +2004,7 @@ if make_global_settings:
print_verbose(output)
write('config.gypi', do_not_edit +
pprint.pformat(output, indent=2) + '\n')
pprint.pformat(output, indent=2, width=1024) + '\n')
write('config.status', '#!/bin/sh\nset -x\nexec ./configure ' +
' '.join([pipes.quote(arg) for arg in original_argv]) + '\n')