]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
and tabs display in TXT records is neat
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 7 Apr 2009 13:25:24 +0000 (13:25 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 7 Apr 2009 13:25:24 +0000 (13:25 +0000)
host2str.c

index 4e2c6c5b537fe2d8d695c00316cbc414fa1c045d..49b69329b93878093039cd6c7778d05a311896ca 100644 (file)
@@ -344,7 +344,7 @@ ldns_rdf2buffer_str_str(ldns_buffer *output, const ldns_rdf *rdf)
        ldns_buffer_printf(output, "\"");
        for (i = 1; i <= length; ++i) {
                char ch = (char) data[i];
-               if (isprint((int)ch)) {
+               if (isprint((int)ch) || ch=='\t') {
                        if (ch == '"' || ch == '\\') {
                                ldns_buffer_printf(output, "\\");
                        }