Replies: 2 comments 3 replies
-
@macMikey Looks like the docs need updating. The parser is looking for 2 space indents. I'm not sure about the four spaces part. on line 3746. I would think that to properly support whatever indenting level is standard in the file that code to detect the indent level, store it, and then use it to check for/reinsert indents. |
Beta Was this translation helpful? Give feedback.
-
I’m fine with a PR for either change. If you modify the code then I would want an example in the PR that shows the bug as well as how the update fixes it. I think @montegoulding wrote the YAML code originally. I can’t remember if I made any changes or not. |
Beta Was this translation helpful? Give feedback.
-
I was trying to debug a yaml file I was creating for use with yamlFileToArray. I noticed that indenting one space on child elements didn't work. So I went into the framework, but I ran into a bit of confusion.
Am I reading this correctly?
In the current dev commit (b96a8cc), in levureLoadAppConfig, I see, on line 3468,
Which is supposed to "add back any stripped literal indents"
That is 4 spaces.
However, in __PathElement, line 3746, we have
to determine if a line is indented a level. That is 2 spaces.
I thought that any level could be indented any number of spaces, provided that it was more spaces than the parent, and as long as all brothers and sisters were indented the same number of spaces.
Indenting a child two spaces per level does cause the array to be populated.
If we are going to use a set number of spaces to specify a child we should update the docs.
Beta Was this translation helpful? Give feedback.
All reactions