Skip to content

Commit b0a32fe

Browse files
committed
Merge pull request #29 from ptwithy/master
SI-8834 serialize, sequenceToXML pass all options Fixes #38
2 parents d1f8fea + b696bea commit b0a32fe

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)