commit | 1454fab16a0642638feb0ae98c41f79eccb2a20a | [log] [tgz] |
---|---|---|
author | lpusok <7979773+lpusok@users.noreply.github.com> | Thu Dec 03 08:07:18 2020 |
committer | GitHub <noreply@github.com> | Thu Dec 03 08:07:18 2020 |
tree | eb7b240fc48818d650ba10133fb2bcc22050bd1e | |
parent | 117a925f21509a9550f452433c190139e480a726 [diff] |
text: add ' to the runes to be quoted when using OpenStep format (#64) Received a "error parsing text property list: missing ; in dictionary .." error when opening an Xcode project saved encoded by the package. Found the root cause to be a dictionary value containing an apostrophe, e.g. "JSON's". Added this character to the bitmap containing quotable chars. Fixes https://github.com/DHowett/go-plist/issues/65.
$ go get howett.net/plist
package main
import (
"howett.net/plist"
"os"
)
func main() {
encoder := plist.NewEncoder(os.Stdout)
encoder.Encode(map[string]string{"hello": "world"})
}