Skip to content
Snippets Groups Projects
Commit cc16529a authored by marco's avatar marco
Browse files

properly consume empty lines

Fixes BZDNG-134

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2531 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent b4aec646
No related branches found
No related tags found
No related merge requests found
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<br/> <br/>
Thank you for using OpenStructure!<br/> Thank you for using OpenStructure!<br/>
<br/> <br/>
This is the current Version of OpenStructure as of June 2010.<br/> This is the current Version of OpenStructure.<br/>
Version: 1.0.0a rev 2442<br/> Version: 1.0.0a1_<br/>
<br/> <br/>
This is a major release containig many bugfixes and improvements considering rendering, GUI and further <br/> This is a major release containig many bugfixes and improvements considering rendering, GUI and further <br/>
functionality.<br/> functionality.<br/>
...@@ -48,4 +48,4 @@ For feedback or suggestions please contact us at <a href="http://www.openstructu ...@@ -48,4 +48,4 @@ For feedback or suggestions please contact us at <a href="http://www.openstructu
<br/> <br/>
The OpenStructure Authors<br/> The OpenStructure Authors<br/>
</body> </body>
\ No newline at end of file
...@@ -105,6 +105,7 @@ void StarParser::ParseLoop() ...@@ -105,6 +105,7 @@ void StarParser::ParseLoop()
while (this->GetLine(line)) { while (this->GetLine(line)) {
StringRef tline=line.rtrim(); StringRef tline=line.rtrim();
if (tline.empty()) { if (tline.empty()) {
this->ConsumeLine();
continue; continue;
} }
switch(tline[0]) { switch(tline[0]) {
...@@ -137,6 +138,7 @@ void StarParser::ParseLoop() ...@@ -137,6 +138,7 @@ void StarParser::ParseLoop()
while (this->GetLine(line)) { while (this->GetLine(line)) {
StringRef tline=line.rtrim(); StringRef tline=line.rtrim();
if (tline.empty()) { if (tline.empty()) {
this->ConsumeLine();
continue; continue;
} }
switch (tline[0]) { switch (tline[0]) {
...@@ -213,6 +215,7 @@ void StarParser::ParseDataItem() ...@@ -213,6 +215,7 @@ void StarParser::ParseDataItem()
while (this->NextLine(line)) { while (this->NextLine(line)) {
StringRef tline=line.rtrim(); StringRef tline=line.rtrim();
if (tline.empty()) { if (tline.empty()) {
this->ConsumeLine();
continue; continue;
} }
if (tline[0]==';') { if (tline[0]==';') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment