Closed alexanderadam closed 9 years ago
The output from sprig-reap
is standard in terms of indentation and you're unable to affect the indentation in newer versions of Ruby. Older versions exposed some of the options of Psych (yaml lib Ruby used under the covers), but unfortunately that's no longer the case.
Is the issue purely aesthetic or is Sprig
unable to parse files like this? If it's an aesthetics thing, you could select all the records that aren't indented and then indent them all at once.
Psych/Spring is unable to parse this while the new "Array"-keys are on the same height as the other "Hash"-keys.
When the table is empty, an
--- []
will be appended which destroys the yaml file even when there is nothing to add. :wink:
Ah, ok. I'll look into this.
I already hat a sprig definition with the structure
After using
sprig-reap
the structure wasSo there was wrong indention (the duplicated id is already mentioned in another issue)