From aa81a408cd717d4b63a865cb50c9fe2d23d881ae Mon Sep 17 00:00:00 2001 From: zhengchun Date: Wed, 28 Jun 2023 15:34:54 +0800 Subject: [PATCH] minor fixes --- node.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/node.go b/node.go index 435cc40..207892a 100644 --- a/node.go +++ b/node.go @@ -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 {