aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorNan Zhang <nanzhang@google.com>2017-05-12 14:02:13 -0700
committerNan Zhang <nanzhang@google.com>2017-05-16 15:10:29 -0700
commit270051119a21ae5f73aa69b16ce2fb53cae534d3 (patch)
tree471266c33cb0d65ea3ba0559612144691b1baf66 /python
parent6df46f5d9384ac7a1eb5baf1dea462d366edcd49 (diff)
downloadbuild_soong-270051119a21ae5f73aa69b16ce2fb53cae534d3.tar.gz
build_soong-270051119a21ae5f73aa69b16ce2fb53cae534d3.tar.bz2
build_soong-270051119a21ae5f73aa69b16ce2fb53cae534d3.zip
Fix the issue "\n" didn't get interpreted properly.
Added params to WriteFile rule that allow users to turn on the specific 'echo' options, such as "enable the interpretation of backslash escapes". Bug: b/38261000 Test: tested with real data files. Change-Id: I5145056b5c2522a3a72b9436055ec95d2fbd94c0
Diffstat (limited to 'python')
-rw-r--r--python/builder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/builder.go b/python/builder.go
index 541d2bf0..b823fcb9 100644
--- a/python/builder.go
+++ b/python/builder.go
@@ -82,7 +82,7 @@ func registerBuildActionForModuleFileList(ctx android.ModuleContext,
Output: fileList,
Implicits: files,
Args: map[string]string{
- "content": strings.Join(content, "\n"),
+ "content": strings.Join(content, `\n`),
},
})