diff --git a/src/UriListParser.cc b/src/UriListParser.cc index af297a11..ace25336 100644 --- a/src/UriListParser.cc +++ b/src/UriListParser.cc @@ -75,7 +75,7 @@ void UriListParser::parseNext(std::vector& 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; diff --git a/test/filelist1.txt b/test/filelist1.txt index 1e459283..efc3a8c0 100644 --- a/test/filelist1.txt +++ b/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