]> git.donarmstrong.com Git - mothur.git/commitdiff
trim.seqs fix of gobble
authorwestcott <westcott>
Wed, 4 May 2011 20:37:19 +0000 (20:37 +0000)
committerwestcott <westcott>
Wed, 4 May 2011 20:37:19 +0000 (20:37 +0000)
trimseqscommand.cpp

index b5393a3a5ba16caec3b89c1eee6906098e95c6a1..a9979e7fa831b30cb5301c3d06d39ad0f202c37f 100644 (file)
@@ -893,12 +893,14 @@ void TrimSeqsCommand::getOligos(vector<vector<string> >& 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<type.length();i++){       type[i] = toupper(type[i]);  }