correctly quote txt

This commit is contained in:
Miek Gieben 2012-02-23 13:34:46 +01:00
parent c6042c4ce8
commit 4ee6d26106
1 changed files with 2 additions and 2 deletions

View File

@ -385,9 +385,9 @@ func (rr *RR_TXT) String() string {
s := rr.Hdr.String()
for i, s1 := range rr.Txt {
if i > 0 {
s += " " + "\"" + s1 + "\""
s += " " + strconv.QuoteToASCII(s1)
} else {
s += "\"" + s1 + "\""
s += strconv.QuoteToASCII(s1)
}
}
return s