From 6af46526d83f386a1f325dd08faec5d9deeac740 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sat, 2 Apr 2016 15:16:45 +0200 Subject: [PATCH] tabs are whitespace too! --- pdns/zoneparser-tng.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/zoneparser-tng.cc b/pdns/zoneparser-tng.cc index 2618d6ecd9..bb65534ecb 100644 --- a/pdns/zoneparser-tng.cc +++ b/pdns/zoneparser-tng.cc @@ -250,7 +250,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) @@ -368,7 +368,7 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment) rr.content=d_line.substr(range.first); chopComment(rr.content); - trim(rr.content); + trim_if(rr.content, is_any_of(" \r\n\t\x1a")); if(equals(rr.content, "@")) rr.content=d_zonename; @@ -387,7 +387,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()) { -- 2.47.2