diff options
author | Stijn Buys <ingar@osirion.org> | 2008-09-10 19:17:52 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-09-10 19:17:52 +0000 |
commit | 83fb219e62113a9f41888af4f2726e5ce5305970 (patch) | |
tree | 3ba9780192fc7aa7d1fe7988b30a85c5ba08d422 /src/auxiliary | |
parent | 033bd59cfc2dff93529ad448459ad6348ea29c8d (diff) |
serverside entities
Diffstat (limited to 'src/auxiliary')
-rw-r--r-- | src/auxiliary/functions.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auxiliary/functions.cc b/src/auxiliary/functions.cc index a6187af..860524a 100644 --- a/src/auxiliary/functions.cc +++ b/src/auxiliary/functions.cc @@ -149,7 +149,7 @@ void to_label(std::string &text) size_t pos = 0; while (pos < text.size()) { - if ((text[pos] == ' ') || (text[pos] == '-')) { + if ((text[pos] == ' ') || (text[pos] == '-') || (text[pos] == '_')) { text[pos] = '_'; pos++; } else if ((text[pos] >= 'A') && (text[pos] <= 'Z')) { |