From 5ad1efce62f70975163477216193865c73b66ebf Mon Sep 17 00:00:00 2001 From: Matthew Webster <mwebster@fmrib.ox.ac.uk> Date: Wed, 5 Jan 2011 15:37:41 +0000 Subject: [PATCH] fix for white spaces --- meloptions.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/meloptions.cc b/meloptions.cc index 6415055..465c6fc 100644 --- a/meloptions.cc +++ b/meloptions.cc @@ -166,9 +166,12 @@ MelodicOptions* MelodicOptions::gopt = NULL; ifstream fs(inputfname.value().at(0).c_str()); string cline; while (!fs.eof()) { - getline(fs,cline); - if(cline.length()>0) - tmpfnames.push_back(cline); + getline(fs,cline); + if(cline.length()>0) { + while ( cline.find(' ') != cline.npos ) + cline.erase( cline.find(' '),1); + tmpfnames.push_back(cline); + } } fs.close(); inputfname.set_T(tmpfnames); -- GitLab