Home | History | Annotate | Download | only in xml

Lines Matching full:indent

115 // copies of indent according to the nesting depth.
116 func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) {
119 enc.Indent(prefix, indent)
138 // Indent sets the encoder to generate XML in which each element
140 // one or more copies of indent according to the nesting depth.
141 func (enc *Encoder) Indent(prefix, indent string) {
143 enc.p.indent = indent
299 indent string
898 if len(p.prefix) == 0 && len(p.indent) == 0 {
917 if len(p.indent) > 0 {
919 p.WriteString(p.indent)