From: westcott Date: Wed, 4 May 2011 20:37:19 +0000 (+0000) Subject: trim.seqs fix of gobble X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=47af4126c6ece121172cd486c1ca7eeb1ccae2de trim.seqs fix of gobble --- diff --git a/trimseqscommand.cpp b/trimseqscommand.cpp index b5393a3..a9979e7 100644 --- a/trimseqscommand.cpp +++ b/trimseqscommand.cpp @@ -893,12 +893,14 @@ void TrimSeqsCommand::getOligos(vector >& fastaFileNames, vector< while(!inOligos.eof()){ - inOligos >> type; m->gobble(inOligos); + inOligos >> type; if(type[0] == '#'){ - while (!inOligos.eof()) { char c = inOligos.get(); if (c == 10 || c == 13){ break; } } // get rest of line if there's any crap there + while (!inOligos.eof()) { char c = inOligos.get(); if (c == 10 || c == 13){ break; } } // get rest of line if there's any crap there + m->gobble(inOligos); } else{ + m->gobble(inOligos); //make type case insensitive for(int i=0;i