[Kst] branches/work/kst/portto4/kst/src/datasources/ascii
Peter Kümmel
syntheticpp at gmx.net
Thu Jan 27 14:43:57 CET 2011
SVN commit 1217479 by kuemmel:
trim vector names
M +6 -2 asciisource.cpp
--- branches/work/kst/portto4/kst/src/datasources/ascii/asciisource.cpp #1217478:1217479
@@ -697,8 +697,12 @@
break;
}
}
- return rc;
+ QStringList trimmed;
+ foreach(const QString& str, rc) {
+ trimmed << str.trimmed();
}
+ return trimmed;
+ }
QRegExp regex;
if (cfg->_columnType == AsciiSourceConfig::Custom && !columnDelimiter.isEmpty()) {
@@ -772,7 +776,7 @@
}
for (int i = 1; i <= maxcnt; ++i) {
- rc += i18n("Column %1").arg(i);
+ rc += i18n("Column %1").arg(i).trimmed();
}
return rc;
More information about the Kst
mailing list