Skip to content

Commit b696bea

Browse files
committed
SI-8834 serialize, sequenceToXML pass all options
serialize and sequenceToXML recursively call each other but were not passing all formatting options. Fix that.
1 parent 6ef0708 commit b696bea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/scala/xml/Utility.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ object Utility extends AnyRef with parsing.TokenTests {
219219
case c: Comment if !stripComments => c buildString sb
220220
case s: SpecialNode => s buildString sb
221221
case g: Group =>
222-
for (c <- g.nodes) serialize(c, g.scope, sb, minimizeTags = minimizeTags); sb
222+
for (c <- g.nodes) serialize(c, g.scope, sb, stripComments, decodeEntities, preserveWhitespace, minimizeTags); sb
223223
case el: Elem =>
224224
// print tag with namespace declarations
225225
sb.append('<')
@@ -234,7 +234,7 @@ object Utility extends AnyRef with parsing.TokenTests {
234234
} else {
235235
// children, so use long form: <xyz ...>...</xyz>
236236
sb.append('>')
237-
sequenceToXML(el.child, el.scope, sb, stripComments)
237+
sequenceToXML(el.child, el.scope, sb, stripComments, decodeEntities, preserveWhitespace, minimizeTags)
238238
sb.append("</")
239239
el.nameToString(sb)
240240
sb.append('>')

0 commit comments

Comments
 (0)