Commit bb0562eb by maarten

accept empty lines in PDB

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@379 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent ec4ea697
...@@ -977,10 +977,12 @@ void PDBFileParser::PreParseInput(istream& is) ...@@ -977,10 +977,12 @@ void PDBFileParser::PreParseInput(istream& is)
for (;;) for (;;)
{ {
string type;
if (lookahead.empty()) if (lookahead.empty())
break; cerr << "Line number " << lineNr << " is empty!" << endl;
string type = lookahead.substr(0, 6); type = lookahead.substr(0, 6);
string value; string value;
if (lookahead.length() > 6) if (lookahead.length() > 6)
value = ba::trim_right_copy(lookahead.substr(6)); value = ba::trim_right_copy(lookahead.substr(6));
...@@ -990,6 +992,9 @@ void PDBFileParser::PreParseInput(istream& is) ...@@ -990,6 +992,9 @@ void PDBFileParser::PreParseInput(istream& is)
uint32 curLineNr = lineNr; uint32 curLineNr = lineNr;
++lineNr; ++lineNr;
if (type.empty())
continue;
if (kSupportedRecords.count(type) == 0) if (kSupportedRecords.count(type) == 0)
{ {
ba::trim(type); ba::trim(type);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment