()
| 237 | } |
| 238 | |
| 239 | func (i *indentation) writeIndent() (err error) { |
| 240 | _, err = io.WriteString(i.w, "\n") |
| 241 | if err != nil { |
| 242 | return |
| 243 | } |
| 244 | _, err = io.WriteString(i.w, strings.Repeat(i.indent, i.level)) |
| 245 | return |
| 246 | } |
| 247 | |
| 248 | func outputXML(w io.Writer, n *Node, preserveSpaces bool, config *outputConfiguration, indent *indentation) (err error) { |
| 249 | preserveSpaces = calculatePreserveSpaces(n, preserveSpaces) |