You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When psych dump object to yaml file, I hope psych can add indentation for array element, for example:
parent:
- child
- child
And yet it is:
parent:
- child
- child
So I wonder how to add indentation for array element. Look forward to your solution, thanks very much.
Reacted by Nick Hackman, tboddysp, Jason Barnett, Nathan T.A. Lewis, Brooks Swinnerton, Francis Bongiovanni, Jakub Jirutka, Sam Jenkins, Andrew Nutter-Upham, Tihomir Ivanov and 8 more
Seconding this, it would be nice to have support for array indentation following the indentation option passed to dump or to_yaml would be ideal. If this already exists I haven't been able to find any sort of documentation referencing it.
If it needs to be implemented then I'd be interested in implementing this feature 👍
Activity
NickHackman commentedon Jul 15, 2020
Seconding this, it would be nice to have support for array indentation following the
indentationoption passed todumporto_yamlwould be ideal. If this already exists I haven't been able to find any sort of documentation referencing it.If it needs to be implemented then I'd be interested in implementing this feature 👍
Paxa commentedon Oct 19, 2022
It looks much better with indentation