MCPcopy Create free account
hub / github.com/antchfx/xmlquery / writeIndent

Method writeIndent

node.go:239–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237}
238
239func (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
248func outputXML(w io.Writer, n *Node, preserveSpaces bool, config *outputConfiguration, indent *indentation) (err error) {
249 preserveSpaces = calculatePreserveSpaces(n, preserveSpaces)

Callers 2

OpenMethod · 0.95
CloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected