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/master
Commit: f753f2bbaa7cb02a8ecd1c3200d3df05fa22fb1d
Parents: 0f9e3f7
Author: Christopher Collins <ccoll...@apache.org>
Authored: Wed Mar 15 14:23:59 2017 -0700
Committer: Christopher Collins <ccoll...@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

Reply via email to