Skip to content

Commit

Permalink
Apply nil encoding patch from clbanning/mxj.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Banning committed Feb 3, 2017
1 parent 7d5be8d commit 1dc5878
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xml.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ func mapToXmlIndent(doIndent bool, s *string, key string, value interface{}, pp
return nil
case nil:
// terminate the tag
if doIndent {
*s += p.padding
}
*s += "<" + key
endTag, isSimple = true, true
break
default: // handle anything - even goofy stuff
elen = 0
Expand Down

0 comments on commit 1dc5878

Please sign in to comment.