Open Overbryd opened 4 years ago
:+1:
Maybe https://golang.org/pkg/encoding/xml/#Encoder.Indent could be a good inspiration fore the API.
Allowing strings as indent (instead of Integers) would avoid the tabs vs. spaces issue. With the prefix one could e.g. use two tabs as prefix but indent with " "
to format xml for markdown.
https://elixirforum.com/t/exoml-parse-xml-strings-into-a-tree/8048/12?u=overbryd
Proposed API: