Closed kenn closed 9 years ago
Yes you can, there is a :formatted
option for the to_str
and save
methods:
plist.to_str(CFPropertyList::List::FORMAT_XML, :formatted => true)
plist.save('test.plist', CFPropertyList::List::FORMAT_XML, :formatted => true)
I guess this solves your issue and thus I close it. Feel free to re-open if problems occur!
Generated XML has a single line with the plist.
Is it possible to have (indented) line feeds?
Because it's easier to track diff on git, and also easier to browse the content on text editors / github.