From: bert hubert Date: Sat, 2 Apr 2016 13:16:45 +0000 (+0200) Subject: tabs are whitespace too! X-Git-Tag: dnsdist-1.0.0-beta1~47^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e01f0f5e3f54e9d1d94a2ed3a80664f5c9c5291;p=thirdparty%2Fpdns.git tabs are whitespace too! --- diff --git a/pdns/zoneparser-tng.cc b/pdns/zoneparser-tng.cc index 7f7aa872c5..1e8c3ccb4b 100644 --- a/pdns/zoneparser-tng.cc +++ b/pdns/zoneparser-tng.cc @@ -265,7 +265,7 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment) if(!getTemplateLine() && !getLine()) return false; - boost::trim_right_if(d_line, is_any_of(" \r\n\x1a")); + boost::trim_right_if(d_line, is_any_of(" \t\r\n\x1a")); if(comment) comment->clear(); if(comment && d_line.find(';') != string::npos) @@ -382,7 +382,7 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment) // rr.content=d_line.substr(range.first); rr.content.assign(d_line, range.first, string::npos); chopComment(rr.content); - trim_if(rr.content, is_any_of(" \r\n\x1a")); + trim_if(rr.content, is_any_of(" \r\n\t\x1a")); if(rr.content.size()==1 && rr.content[0]=='@') rr.content=d_zonename.toString(); @@ -401,7 +401,7 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment) } } } - trim_if(rr.content, is_any_of(" \r\n\x1a")); + trim_if(rr.content, is_any_of(" \r\n\t\x1a")); vector recparts; switch(rr.qtype.getCode()) {