on master help sign in
No tags for empty strings
259754cMichael Snoyman
Data/Yaml.hs+1−1
@@ -117,7 +117,7 @@ objToEvents' (Object pairs) rest =
117
117
118-- Empty strings need special handling to ensure they get quoted. This avoids:
118-- Empty strings need special handling to ensure they get quoted. This avoids:
119-- https://github.com/snoyberg/yaml/issues/24
119-- https://github.com/snoyberg/yaml/issues/24
120−objToEvents' (String "") rest = EventScalar "" StrTag SingleQuoted Nothing : rest
120+objToEvents' (String "") rest = EventScalar "" NoTag SingleQuoted Nothing : rest
121
121
122objToEvents' (String s) rest = EventScalar (encodeUtf8 s) StrTag PlainNoTag Nothing : rest
122objToEvents' (String s) rest = EventScalar (encodeUtf8 s) StrTag PlainNoTag Nothing : rest
123objToEvents' Null rest = EventScalar "null" NullTag PlainNoTag Nothing : rest
123objToEvents' Null rest = EventScalar "null" NullTag PlainNoTag Nothing : rest
yaml.cabal+1−1
@@ -1,5 +1,5 @@
1name: yaml
1name: yaml
2−version: 0.8.2.2
2+version: 0.8.2.3
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
5author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov