Removing the trailing carriage return as well, otherwise removing trailing spaces...
authorrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Apr 2012 13:03:50 +0000 (13:03 +0000)
committerrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Apr 2012 13:03:50 +0000 (13:03 +0000)
STEER/STEER/AliGRPPreprocessor.cxx

index 5169ae9..d9c19ce 100644 (file)
@@ -1793,9 +1793,9 @@ THashList* AliGRPPreprocessor::ProcessAliases(const char* aliasesFile)
        TString strLine;
        while (strLine.ReadLine(*file)) {
 
-               //if (strLine.BeginsWith("#")) continue;
                if (strLine.IsNull()) continue;
                strLine.Remove(TString::kLeading,' ');
+               strLine.Remove(TString::kTrailing,'\r');
                strLine.Remove(TString::kTrailing,' ');
 
                TObjArray* arr = strLine.Tokenize(' ');