Преглед изворни кода

Recognize tab as white space before option in -i list.

Tatsuhiro Tsujikawa пре 14 година
родитељ
комит
c408dbba72
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      src/UriListParser.cc
  2. 1 1
      test/filelist1.txt

+ 1 - 1
src/UriListParser.cc

@@ -75,7 +75,7 @@ void UriListParser::parseNext(std::vector<std::string>& uris, Option& op)
           break;
         }
         line_.assign(&buf[0], &buf[strlen(buf)]);
-        if(util::startsWith(line_, " ")) {
+        if(util::startsWith(line_, " ") || util::startsWith(line_, "\t")) {
           ss << line_ << "\n";
         } else if(util::startsWith(line_, A2STR::SHARP_C)) {
           continue;

+ 1 - 1
test/filelist1.txt

@@ -4,4 +4,4 @@ http://localhost/index.html	http://localhost2/index.html
 ftp://localhost/aria2.tar.bz2
   dir=/tmp
 # comment line
-  out=chunky_chocolate
+	 out=chunky_chocolate