appendSplit(ret, segment, *(fpc));
}
- escaped = '\\' ((["\\]@reportEscaped) | ([0-9]{3}$reportEscapedNumber%doneEscapedNumber));
+ escaped = '\\' (([^0-9]@reportEscaped) | ([0-9]{3}$reportEscapedNumber%doneEscapedNumber));
plain = ((print-'\\'-'"')|'\n'|'\t') $ reportPlain;
txtElement = escaped | plain;
--- /dev/null
+#!/bin/sh
+cleandig text0.example.com TXT
+cleandig text1.example.com TXT
+cleandig text2.example.com TXT
+cleandig text3.example.com TXT
--- /dev/null
+0 text0.example.com. IN TXT 120 "k=rsa; p=one"
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='text0.example.com.', qtype=TXT
+0 text1.example.com. IN TXT 120 "k=rsa; p=one"
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='text1.example.com.', qtype=TXT
+0 text2.example.com. IN TXT 120 "k=rsa\\; p=one"
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='text2.example.com.', qtype=TXT
+0 text3.example.com. IN TXT 120 "k=rsa\\; p=one"
+Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
+Reply to question for qname='text3.example.com.', qtype=TXT
text IN TXT "Hi, this is some text"
multitext IN TXT "text part one" "text part two" "text part three"
escapedtext IN TXT "begin" "the \"middle\" p\\art" "the end"
+text0 IN TXT "k=rsa; p=one"
+text1 IN TXT "k=rsa\; p=one"
+text2 IN TXT "k=rsa\\; p=one"
+text3 IN TXT "k=rsa\\\; p=one"
+
;
ipv6 IN AAAA 2001:6A8:0:1:210:4BFF:FE4B:4C61
;