mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
grouping: strip newlines
fixes https://github.com/galaxyproject/galaxy/issues/8383 more generally: if grouping is done on the last column then the newline was retained and contained in the output.
This commit is contained in:
@@ -124,7 +124,9 @@ def main():
|
||||
item = line.split("\t")[group_col]
|
||||
except IndexError:
|
||||
stop_err("The following line didn't have %s columns: %s" % (group_col + 1, line))
|
||||
|
||||
# in case of grouping by the last column the newline character needs to be removed
|
||||
# removal of other white spaces seems also useful
|
||||
item = item.strip()
|
||||
if ignorecase == 1:
|
||||
return item.lower()
|
||||
return item
|
||||
|
||||
Reference in New Issue
Block a user