From cb300b48c18c835ababb7769b3d6e85c5abbd7c2 Mon Sep 17 00:00:00 2001 From: xi Date: Sat, 28 Mar 2009 12:49:11 +0000 Subject: 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 --- lib/yaml/emitter.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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) -- cgit v1.2.1