trim filenames, apparently writing a file "some card " is not possible on windows, it drops the trailing space.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1448 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-07-21 18:06:54 +00:00
parent 07d4e8619b
commit f8c7961c03
2 changed files with 11 additions and 2 deletions
+3 -1
View File
@@ -208,7 +208,9 @@ void Set::reflect_cards<Writer> (Writer& tag) {
} else {
set<String> used;
FOR_EACH(card, cards) {
String filename = normalize_internal_filename(clean_filename(card->identification()));
// pick a unique filename for this card
// can't use Package::newFileName, because then we get conflicts with the previous save of the same card
String filename = _("card ") + normalize_internal_filename(clean_filename(card->identification()));
String full_name = filename;
int i = 0;