ENH: strip off comment lines

This commit is contained in:
mattijs
2010-03-18 14:38:44 +00:00
parent 9535bcf408
commit 9c60eb17d1

View File

@ -960,7 +960,14 @@ int main(int argc, char *argv[])
# endif
}
if (rawLine.empty() || rawLine[0] == '#')
// Strip off anything after #
string::size_type i = rawLine.find_first_of("#");
if (i != string::npos)
{
rawLine = rawLine(0, i);
}
if (rawLine.empty())
{
continue;
}