Skip to content

Commit aa81a40

Browse files
committed
minor fixes
1 parent 56cac1c commit aa81a40

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

node.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@ func (n *Node) OutputXMLWithOptions(opts ...OutputOption) string {
224224
opt(config)
225225
}
226226
pastPreserveSpaces := config.preserveSpaces
227-
// restore the default value, for compatibility
228-
config.preserveSpaces = false
229-
230227
preserveSpaces := calculatePreserveSpaces(n, pastPreserveSpaces)
231228
var b strings.Builder
232229
if config.printSelf && n.Type != DocumentNode {

0 commit comments

Comments
 (0)