(preserveSpaces bool)
| 168 | } |
| 169 | |
| 170 | func (n *Node) sanitizedData(preserveSpaces bool) string { |
| 171 | if preserveSpaces { |
| 172 | return n.Data |
| 173 | } |
| 174 | return strings.TrimSpace(n.Data) |
| 175 | } |
| 176 | |
| 177 | func calculatePreserveSpaces(n *Node, pastValue bool) bool { |
| 178 | if attr := n.SelectAttr("xml:space"); attr == "preserve" { |