Permalink
Browse files

tabs are whitespace too!

  • Loading branch information...
1 parent e9e413f commit 6af46526d83f386a1f325dd08faec5d9deeac740 @ahupowerdns ahupowerdns committed with mind04 Apr 2, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 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<string> recparts;
switch(rr.qtype.getCode()) {

0 comments on commit 6af4652

Please sign in to comment.