You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2017/03/15 21:47:07 UTC
incubator-mynewt-newt git commit: MYNEWT-660 newt - Quotes get
stripped from syscfg
Repository: incubator-mynewt-newt
Updated Branches:
refs/heads/develop 0f9e3f78d -> f753f2bba
MYNEWT-660 newt - Quotes get stripped from syscfg
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/f753f2bb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/f753f2bb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/f753f2bb
Branch: refs/heads/develop
Commit: f753f2bbaa7cb02a8ecd1c3200d3df05fa22fb1d
Parents: 0f9e3f7
Author: Christopher Collins <cc...@apache.org>
Authored: Wed Mar 15 14:23:59 2017 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Wed Mar 15 14:23:59 2017 -0700
----------------------------------------------------------------------
newt/pkg/localpackage.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/f753f2bb/newt/pkg/localpackage.go
----------------------------------------------------------------------
diff --git a/newt/pkg/localpackage.go b/newt/pkg/localpackage.go
index 3ce55e6..7a6beb4 100644
--- a/newt/pkg/localpackage.go
+++ b/newt/pkg/localpackage.go
@@ -249,7 +249,7 @@ func (lpkg *LocalPackage) SaveSyscfgVals() error {
fmt.Fprintf(file, "\n")
fmt.Fprintf(file, "syscfg.vals:\n")
for _, name := range names {
- fmt.Fprintf(file, " %s: %s\n", name, syscfgVals[name])
+ fmt.Fprintf(file, " %s: %s\n", name, yaml.EscapeString(syscfgVals[name]))
}
return nil