From a993d31910b63a1f897e470842934e6ffefad32c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 13 Nov 2009 22:25:09 +0000 Subject: added core::InfoType, refactored game::ShipModel as core::Info subclass, introduced core::Label --- src/filesystem/inifile.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/filesystem') diff --git a/src/filesystem/inifile.cc b/src/filesystem/inifile.cc index 52bf36d..e9ab283 100644 --- a/src/filesystem/inifile.cc +++ b/src/filesystem/inifile.cc @@ -101,6 +101,10 @@ bool IniFile::getline() if (s.size() == 0) { // empty line } else + // strip trailing EOL / FF characters + if ( (s[s.size() -1] == 0x0a) || (s[s.size() -1] == 0x0d)) + s.erase(s.size() -1); + // comment if (s[0] == '#' || s[0] == ';') { // condebug << "IniFile got comment " << s << std::endl; -- cgit v1.2.3