View Source XmlBuilder.Format behaviour (xml_builder_ex v3.1.4159)
Base behaviour for all the formatters. There are two defauls formatters
included: XmlBuilder.Format.None
and XmlBuilder.Format.Indented
.
To introduce the new formatter, one should use XmlBuilder.Format
and
possibly override indent/1
and/or intersperse/0
implementation(s):
defmodule MyCuteFormat do
use XmlBuilder.Format, indent: " ", intersperse: "\n"
end
Summary
Callbacks
@callback indent(non_neg_integer()) :: binary() | iodata()