]> granicus.if.org Git - pdns/commitdiff
tabs are whitespace too!
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 2 Apr 2016 13:16:45 +0000 (15:16 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 2 Apr 2016 13:16:45 +0000 (15:16 +0200)
pdns/zoneparser-tng.cc

index 7f7aa872c5ea23280c4e89d3dd2b41b9ac922a55..1e8c3ccb4b7d27c54f66ad6ee56edf6fc78537ef 100644 (file)
@@ -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<string> recparts;
   switch(rr.qtype.getCode()) {