From cc16529ac09e96369a549b781dffbf93ff30b105 Mon Sep 17 00:00:00 2001 From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Tue, 6 Jul 2010 10:35:04 +0000 Subject: [PATCH] properly consume empty lines Fixes BZDNG-134 git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2531 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- deployment/README.html | 6 +++--- modules/io/src/mol/star_parser.cc | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/deployment/README.html b/deployment/README.html index 81dcb0b00..6dbf2f95c 100644 --- a/deployment/README.html +++ b/deployment/README.html @@ -37,8 +37,8 @@ <br/> Thank you for using OpenStructure!<br/> <br/> -This is the current Version of OpenStructure as of June 2010.<br/> -Version: 1.0.0a rev 2442<br/> +This is the current Version of OpenStructure.<br/> +Version: 1.0.0a1_<br/> <br/> This is a major release containig many bugfixes and improvements considering rendering, GUI and further <br/> functionality.<br/> @@ -48,4 +48,4 @@ For feedback or suggestions please contact us at <a href="http://www.openstructu <br/> The OpenStructure Authors<br/> -</body> \ No newline at end of file +</body> diff --git a/modules/io/src/mol/star_parser.cc b/modules/io/src/mol/star_parser.cc index 09ce3af22..6097262cc 100644 --- a/modules/io/src/mol/star_parser.cc +++ b/modules/io/src/mol/star_parser.cc @@ -105,6 +105,7 @@ void StarParser::ParseLoop() while (this->GetLine(line)) { StringRef tline=line.rtrim(); if (tline.empty()) { + this->ConsumeLine(); continue; } switch(tline[0]) { @@ -137,6 +138,7 @@ void StarParser::ParseLoop() while (this->GetLine(line)) { StringRef tline=line.rtrim(); if (tline.empty()) { + this->ConsumeLine(); continue; } switch (tline[0]) { @@ -213,6 +215,7 @@ void StarParser::ParseDataItem() while (this->NextLine(line)) { StringRef tline=line.rtrim(); if (tline.empty()) { + this->ConsumeLine(); continue; } if (tline[0]==';') { -- GitLab