From cc7586f4833580dca93c87b1fc0837eb8090461b Mon Sep 17 00:00:00 2001 From: akir Date: Sat, 4 Sep 2004 04:54:38 +0000 Subject: blank lines again --- src/Remember.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Remember.cc b/src/Remember.cc index 05690d4..27a8da2 100644 --- a/src/Remember.cc +++ b/src/Remember.cc @@ -21,7 +21,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Remember.cc,v 1.41 2004/09/02 09:52:26 akir Exp $ +// $Id: Remember.cc,v 1.42 2004/09/04 04:54:38 akir Exp $ #include "Remember.hh" #include "ClientPattern.hh" @@ -461,7 +461,9 @@ void Remember::load() { std::list grouped_pats; while (getline(apps_file, line) && ! apps_file.eof()) { row++; - if (line[0] == '#') + FbTk::StringUtil::removeFirstWhitespace(line); + FbTk::StringUtil::removeTrailingWhitespace(line); + if (line.size() == 0 || line[0] == '#') continue; string key; int err=0; -- cgit v0.11.2