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
Where Newline2SpacesIndenter() is my custom indenter.
However, attempting to use the resulting ObjectWriter doesn't result in the expected behaviour - the customized indenter is lost, as DefaultXmlPrettyPrinter.createInstance() doesn't preserve configuration.
Is this a bug, or am I attempting to configure things in the wrong place?
The text was updated successfully, but these errors were encountered:
I want to prettyprint XML with a
\n
character, disregarding the system dependent line feed/carriage return settings.I thought that the following code would be sufficient:
Where
Newline2SpacesIndenter()
is my custom indenter.However, attempting to use the resulting ObjectWriter doesn't result in the expected behaviour - the customized indenter is lost, as
DefaultXmlPrettyPrinter.createInstance()
doesn't preserve configuration.Is this a bug, or am I attempting to configure things in the wrong place?
The text was updated successfully, but these errors were encountered: