Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengchun committed Jun 28, 2023
1 parent 56cac1c commit aa81a40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ func (n *Node) OutputXMLWithOptions(opts ...OutputOption) string {
opt(config)
}
pastPreserveSpaces := config.preserveSpaces
// restore the default value, for compatibility
config.preserveSpaces = false

preserveSpaces := calculatePreserveSpaces(n, pastPreserveSpaces)
var b strings.Builder
if config.printSelf && n.Type != DocumentNode {
Expand Down

0 comments on commit aa81a40

Please sign in to comment.