diff options
author | Stijn Buys <ingar@osirion.org> | 2009-11-13 22:25:09 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-11-13 22:25:09 +0000 |
commit | a993d31910b63a1f897e470842934e6ffefad32c (patch) | |
tree | fef52482d762acbbd35e97f382b60ff24ce5071f /src/filesystem | |
parent | 5ddb64795cc959916eeedbec8dc3f65c06f49698 (diff) |
added core::InfoType, refactored game::ShipModel as core::Info subclass, introduced core::Label
Diffstat (limited to 'src/filesystem')
-rw-r--r-- | src/filesystem/inifile.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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; |