Skip to content

Commit

Permalink
SI-8834 serialize, sequenceToXML pass all options
Browse files Browse the repository at this point in the history
serialize and sequenceToXML recursively call each other but were not
passing all formatting options.  Fix that.
  • Loading branch information
ptwithy committed Sep 19, 2014
1 parent 6ef0708 commit b696bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/scala/xml/Utility.scala
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ object Utility extends AnyRef with parsing.TokenTests {
case c: Comment if !stripComments => c buildString sb
case s: SpecialNode => s buildString sb
case g: Group =>
for (c <- g.nodes) serialize(c, g.scope, sb, minimizeTags = minimizeTags); sb
for (c <- g.nodes) serialize(c, g.scope, sb, stripComments, decodeEntities, preserveWhitespace, minimizeTags); sb
case el: Elem =>
// print tag with namespace declarations
sb.append('<')
Expand All @@ -234,7 +234,7 @@ object Utility extends AnyRef with parsing.TokenTests {
} else {
// children, so use long form: <xyz ...>...</xyz>
sb.append('>')
sequenceToXML(el.child, el.scope, sb, stripComments)
sequenceToXML(el.child, el.scope, sb, stripComments, decodeEntities, preserveWhitespace, minimizeTags)
sb.append("</")
el.nameToString(sb)
sb.append('>')
Expand Down

0 comments on commit b696bea

Please sign in to comment.