From 83cef18dfe34d67c919dfb497c718c6b90537695 Mon Sep 17 00:00:00 2001 From: Cyrille Valladeau <cyrille.valladeau@c-s.fr> Date: Thu, 15 Dec 2011 15:29:12 +0100 Subject: [PATCH] ENH: supress double spaces --- Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx index 0e19f80516..1a5ae9349f 100644 --- a/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx +++ b/Code/Wrappers/CommandLine/otbWrapperCommandLineLauncher.cxx @@ -92,6 +92,12 @@ void CommandLineLauncher::DeleteWatcherList() bool CommandLineLauncher::Load(const std::string & exp) { m_Expression = exp; + //std::cout<<m_Expression<<std::endl; + + while(m_Expression.find(" ") != std::string::npos) + m_Expression.erase(m_Expression.find(" "), 1); + + //std::cout<<m_Expression<<std::endl; return this->Load(); } -- GitLab