Menu

#27 Spaces at the beginning of a new scalar block line are ignor

open
nobody
spyc (22)
5
2008-06-05
2008-06-05
No

{{{
#!yaml
PluginsfSimpleCMSSlot_1_en_slot3:
page: sfSimpleCMSPage_1
culture: en
name: slot3
type: Modular
value: |
test1:
component: sfSimpleCMS/latestPages
}}}
spyc makes the value of "value:":

test1:
component: sfSimpleCMS/latestPages

instead of

test1:
component: sfSimpleCMS/latestPages

Yaml.org parser:
http://dev.yaml.org/ypaste/61/index.html

From looking at the parsing of the line here you'll notice the last context text includes two spaces before the word "component". When spyc parses this same yaml those spaces are lost and the two lines for "value:" are parsed to be at the same indentation.

Discussion


Log in to post a comment.