File tree 2 files changed +15
-2
lines changed
src/main/java/com/fasterxml/jackson/dataformat/xml/util
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ Project: jackson-dataformat-xml
8
8
9
9
No changes since 2.7.
10
10
11
+ 2.7.10 (not yet released)
12
+
13
+ #222: DefaultXmlPrettyPrinter indentation configuration not preserved
14
+ (reported by jtuc@github)
15
+
11
16
2.7.9 (04-Feb-2017)
12
17
13
18
No changes since 2.7.8
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public interface Indenter
93
93
* is encountered. Used for suppressing indentation to allow empty
94
94
* elements.
95
95
*
96
- * @since 2.3.0
96
+ * @since 2.3
97
97
*/
98
98
protected transient boolean _justHadStartElement ;
99
99
@@ -105,6 +105,14 @@ public interface Indenter
105
105
106
106
public DefaultXmlPrettyPrinter () { }
107
107
108
+ protected DefaultXmlPrettyPrinter (DefaultXmlPrettyPrinter base )
109
+ {
110
+ _arrayIndenter = base ._arrayIndenter ;
111
+ _objectIndenter = base ._objectIndenter ;
112
+ _spacesInObjectEntries = base ._spacesInObjectEntries ;
113
+ _nesting = base ._nesting ;
114
+ }
115
+
108
116
public void indentArraysWith (Indenter i )
109
117
{
110
118
_arrayIndenter = (i == null ) ? new NopIndenter () : i ;
@@ -125,7 +133,7 @@ public void indentObjectsWith(Indenter i)
125
133
126
134
@ Override
127
135
public DefaultXmlPrettyPrinter createInstance () {
128
- return new DefaultXmlPrettyPrinter ();
136
+ return new DefaultXmlPrettyPrinter (this );
129
137
}
130
138
131
139
/*
You can’t perform that action at this time.
0 commit comments