From: david Date: Sat, 19 Jan 2002 05:32:28 +0000 (+0000) Subject: Latest JSBSim changes, including some gear tweaking from Jon and some X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eedf9f9671487ab448b0a9a1f17f87197121935a;p=flightgear.git Latest JSBSim changes, including some gear tweaking from Jon and some fuel-reporting improvements for piston engines. --- diff --git a/src/FDM/JSBSim/FGConfigFile.cpp b/src/FDM/JSBSim/FGConfigFile.cpp index 488ec0b61..9a03a1517 100644 --- a/src/FDM/JSBSim/FGConfigFile.cpp +++ b/src/FDM/JSBSim/FGConfigFile.cpp @@ -88,6 +88,9 @@ string FGConfigFile::GetNextConfigLine(void) comment_length = comment_ends_at + 2 - comment_starts_at + 1; LineComment = CurrentLine.substr(comment_starts_at+4, comment_length-4-3); CurrentLine.erase(comment_starts_at, comment_length); + if (CurrentLine.find_first_not_of(" ") == string::npos) { + CurrentLine.erase(); + } } else if ( start_comment && !end_comment) { //