GN: Add the ability to trim whitespace from script results.

Adds an optional "trim" mode that can trim whitespace from the beginnings and endings of script results when converting them to GN values.

This also adds default arguments for exec_script to simplify calling in cases where the arguments are not needed.

R=bbudge@chromium.org

Review URL: https://codereview.chromium.org/129043005

Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 9753797060defb83611cd49937f2891086105792
4 files changed
tree: 6b7ad00991f8b1b28c3330c75d4d1fc6becb6f57
  1. tools/