Skip to content

Commit

Permalink
Fixed problem with Windows line endings in FASTA parser
Browse files Browse the repository at this point in the history
  • Loading branch information
iminkin committed Jul 23, 2013
1 parent 02be754 commit 3117ecf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fasta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
//****************************************************************************

#include "fasta.h"
#include <boost/algorithm/string.hpp>

namespace SyntenyFinder
{
Expand Down Expand Up @@ -32,6 +33,7 @@ namespace SyntenyFinder
while(!inputStream_.eof())
{
std::getline(inputStream_, buffer);
boost::algorithm::trim(buffer);

if (buffer.empty()) continue;

Expand Down

0 comments on commit 3117ecf

Please sign in to comment.