Skip to content

Commit

Permalink
Added extended pretty printing
Browse files Browse the repository at this point in the history
  • Loading branch information
fkollmann authored Mar 1, 2018
1 parent 63d6b99 commit 0c30601
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,9 @@ func (n *Node) XMLPretty() string {
printXML(buf, n, 0, " ")
return buf.String()
}

func (n *Node) XMLPrettyEx(indent string) string {
buf := new(bytes.Buffer)
printXML(buf, n, 0, indent)
return buf.String()
}

0 comments on commit 0c30601

Please sign in to comment.