mattray / spiceweasel

Generates Chef knife commands from a simple JSON or YAML file.
Apache License 2.0
283 stars 66 forks source link

tolerate newlines in options #63 #64

Closed xpe closed 9 years ago

xpe commented 10 years ago

This popped up because I like to use the ">" multiline style for YAML files. Currently, spiceweasel doesn't handle a trailing newline.

See: https://github.com/mattray/spiceweasel/issues/63

mattray commented 9 years ago

Turns out this isn't a bug. You can strip the newlines inside the YAML automatically. I've updated the tests to account for this, but no patch is needed. http://www.yaml.org/YAML_for_ruby.html#three_trailing_newlines_in_folded_blocks