diff options
author | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2009-03-28 12:49:11 +0000 |
---|---|---|
committer | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2009-03-28 12:49:11 +0000 |
commit | cb300b48c18c835ababb7769b3d6e85c5abbd7c2 (patch) | |
tree | 571f25b9ac1633499fa4abe5baa0f6855b89edc4 | |
parent | 00b7723b8571b55a70d57d0cb9edd724c943ac3b (diff) | |
download | pyyaml-cb300b48c18c835ababb7769b3d6e85c5abbd7c2.tar.gz |
Fixed a bug where folded scalar emitter did not respect the preffered line width (Thanks ingy for the report and the patch).
git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@347 18f92427-320e-0410-9341-c67f048884a3
-rw-r--r-- | lib/yaml/emitter.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/yaml/emitter.py b/lib/yaml/emitter.py index e6780ba..f763b90 100644 --- a/lib/yaml/emitter.py +++ b/lib/yaml/emitter.py @@ -1027,6 +1027,7 @@ class Emitter(object): else: if ch is None or ch in u' \n\x85\u2028\u2029': data = text[start:end] + self.column += len(data) if self.encoding: data = data.encode(self.encoding) self.stream.write(data) |