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

pull/2/head
Tatsuhiro Tsujikawa 2011-08-28 00:40:23 +09:00
parent a743bef220
commit c408dbba72
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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