1. Andy Clark
  2. pyyaml


Kirill Simonov  committed fb8c53e

Fixed a bug where folded scalar emitter did not respect the preffered line width (Thanks ingy for the report and the patch).

  • Participants
  • Parent commits 0f89260
  • Branches default

Comments (0)

Files changed (1)

File lib/yaml/emitter.py

View file
  • Ignore whitespace
                 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)