Skip to content

Commit

Permalink
Add xml with indent by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Dec 5, 2023
1 parent 03e7b79 commit fd9d096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speak.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Speak struct {
}

func (s *Speak) ToXML() ([]byte, error) {
return xml.Marshal(s)
return xml.MarshalIndent(s, "", " ")
}

type SpeakOption func(*Speak)
Expand Down

0 comments on commit fd9d096

Please sign in to comment.