]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/sourcelist.cc
lintian: don't show the typofix as a typo
[apt.git] / apt-pkg / sourcelist.cc
index 3e714667c63d07814594db9ff1dc463f3412ef44..d3bcbce5fb1953da42658b83fdf3c174cc5df189 100644 (file)
@@ -384,7 +384,7 @@ bool pkgSourceList::ParseFileOldStyle(std::string const &File)
         continue;
 
       // Grok it
-      std::string const LineType = Buffer.substr(0, Buffer.find(' '));
+      std::string const LineType = Buffer.substr(0, Buffer.find_first_of(" \t\v"));
       if (LineType.empty() || LineType == Buffer)
         return _error->Error(_("Malformed line %u in source list %s (type)"),CurLine,File.c_str());