From 346bde5e403370a3b76451ee8ab5869ec9d95fce Mon Sep 17 00:00:00 2001 From: dockes Date: Wed, 21 Nov 2007 09:34:54 +0000 Subject: [PATCH] explicitely detect lines beginning with # --- src/utils/conftree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/conftree.cpp b/src/utils/conftree.cpp index 957caa06..1633dd2e 100755 --- a/src/utils/conftree.cpp +++ b/src/utils/conftree.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid [] = "@(#$Id: conftree.cpp,v 1.13 2007-10-01 15:57:48 dockes Exp $ (C) 2003 J.F.Dockes"; +static char rcsid [] = "@(#$Id: conftree.cpp,v 1.14 2007-11-21 09:34:54 dockes Exp $ (C) 2003 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -85,7 +85,7 @@ void ConfSimple::parseinput(istream &input) // Note that we trim whitespace before checking for backslash-eol // This avoids invisible problems. trimstring(line); - if (line.empty()) { + if (line.empty() || line.at(0) == '#') { m_order.push_back(ConfLine(ConfLine::CFL_COMMENT, line)); continue; }