Quote property values
This uses %q to quote property values when printing them.  This ensures
that control characters are escaped (like \n), in addition to replacing any
unprintable characters with the appropriate escape sequence.  Both show up
nicer in the output for planning commands, etc.
@@ -809,7 +809,7 @@ func printPropertyValue(b *bytes.Buffer, v resource.PropertyValue, indent string
} else if v.IsNumber() {
b.WriteString(fmt.Sprintf("%v", v.NumberValue()))
} else if v.IsString() {
- b.WriteString(fmt.Sprintf("\"%s\"", v.StringValue()))
+ b.WriteString(fmt.Sprintf("%q", v.StringValue()))
} else if v.IsResource() {
b.WriteString(fmt.Sprintf("-> *%s", v.ResourceValue()))
} else if v.IsArray() {
