kylelemons/go-gypsy — pull request #14 by moraes (2013-05-10 15:39:45+00:00)
Title: Render multi-line strings correctly and support empty lines in multi-line strings

This pull request adds empty line support for multi-line strings, which is allowed per YAML's literal strings spec. Also, it renders multi-line strings correctly. For example:

node := yaml.Map{"a": yaml.Scalar("b\nc"), "d": yaml.Scalar("e")}
config := yaml.Render(node)

is rendered as:

a: |
b
c
d: e

Please consider it with love.