Commit 822d835f authored by Mathieu Giraud's avatar Mathieu Giraud

core/fasta.cpp: remove spurious space at the end of {,base}name

parent fb4143e6
...@@ -86,8 +86,14 @@ void Fasta::add(const string &filename, bool verbose) { ...@@ -86,8 +86,14 @@ void Fasta::add(const string &filename, bool verbose) {
throw invalid_argument(" !! Error in opening file: "+ filename); throw invalid_argument(" !! Error in opening file: "+ filename);
} }
name += filename + " "; if (name.size())
basename += extract_basename(filename) += " "; name += " ";
if (basename.size())
basename += " ";
name += filename;
basename += extract_basename(filename);
if (verbose) if (verbose)
cout << " <== " << filename ; cout << " <== " << filename ;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment