Permalink
Browse files
Changes - characters in group names to _ for filenames
- Loading branch information...
Showing
with
7 additions
and
1 deletion.
-
+7
−1
source/commands/command.hpp
|
|
@@ -87,7 +87,13 @@ class Command { |
|
|
if (filename.length() > 0) { //rip off last "."
|
|
|
filename = filename.substr(0, filename.length()-1);
|
|
|
}
|
|
|
- filename += it->second + ".";
|
|
|
+ filename += it->second + ".";
|
|
|
+ }else if ((it->first == "[group]") || (it->first == "[tag]")) {
|
|
|
+ string group = it->second;
|
|
|
+ for (int j = 0; j < group.length(); j++) {
|
|
|
+ if (group[j] == '-') { group[j] = '_'; }
|
|
|
+ }
|
|
|
+ filename += group + ".";
|
|
|
}else { filename += it->second + "."; }
|
|
|
}
|
|
|
}
|
|
|
|
0 comments on commit
a053acd