diff --git a/peg.peg.go b/peg.peg.go index fe58771..bc908f5 100644 --- a/peg.peg.go +++ b/peg.peg.go @@ -252,7 +252,7 @@ func (node *node32) print(w io.Writer, pretty bool, buffer string) { print = func(node *node32, depth int) { for node != nil { for c := 0; c < depth; c++ { - fmt.Fprintf(w, " ") + fmt.Fprint(w, " ") } rule := rul3s[node.pegRule] quote := strconv.Quote(string(([]rune(buffer)[node.begin:node.end]))) diff --git a/tree/peg.go b/tree/peg.go index 4ab9fed..c52ecf7 100644 --- a/tree/peg.go +++ b/tree/peg.go @@ -71,7 +71,7 @@ func (node *node32) print(w io.Writer, pretty bool, buffer string) { print = func(node *node32, depth int) { for node != nil { for c := 0; c < depth; c++ { - fmt.Fprintf(w, " ") + fmt.Fprint(w, " ") } rule := rul3s[node.pegRule] quote := strconv.Quote(string(([]rune(buffer)[node.begin:node.end])))