From 765927f9f0e9ca751e1d94bd86aaf47200dcdb81 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 26 Sep 2010 14:55:35 +0000 Subject: moved trading definitions from station.ini to the zone.ini --- src/auxiliary/functions.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/auxiliary') diff --git a/src/auxiliary/functions.cc b/src/auxiliary/functions.cc index 5dbc012..47f7fb2 100644 --- a/src/auxiliary/functions.cc +++ b/src/auxiliary/functions.cc @@ -135,10 +135,11 @@ const std::string lowercase(const std::string &text) void trim(std::string &text) { - while (text.size() && text[0] == ' ') { + // remove spaces and tabs + while (text.size() && ((text[0] == ' ') || (text[0] == 9))) { text.erase(0, 1); } - while (text.size() && text[text.size()-1] == ' ') { + while (text.size() && ((text[text.size()-1] == ' ') || (text[text.size()-1] == 9))) { text.erase(text.size() - 1, 1); } } -- cgit v1.2.3