From c408dbba72b67be1a1251e5294e84b33224a3e9b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 28 Aug 2011 00:40:23 +0900 Subject: [PATCH] Recognize tab as white space before option in -i list. --- src/UriListParser.cc | 2 +- test/filelist1.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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