From bede2907b99951163b8cee69f79405abf4e44e1a Mon Sep 17 00:00:00 2001 From: zipho Date: Fri, 19 Aug 2016 16:01:32 +0200 Subject: [PATCH] added some changes to fix --- templates/webapps/galaxy/library/common/common.mako | 4 ++-- tools/data_source/upload.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/webapps/galaxy/library/common/common.mako b/templates/webapps/galaxy/library/common/common.mako index d507f5fa297..28b9664de1a 100644 --- a/templates/webapps/galaxy/library/common/common.mako +++ b/templates/webapps/galaxy/library/common/common.mako @@ -282,12 +282,12 @@ name = 'files_0|to_posix_lines' else: name = 'to_posix_lines' - uni2posix = 'No' % ( name, checked ) + uni2posix = 'Yes' % ( name, checked ) %> ${uni2posix}
- Use this option if you don't need your datasets to be converted from uni to posix line endings. + Use this option if you need your datasets to be converted from uni to posix line endings.
diff --git a/tools/data_source/upload.py b/tools/data_source/upload.py index a95cba872f7..838aa069a8f 100644 --- a/tools/data_source/upload.py +++ b/tools/data_source/upload.py @@ -310,9 +310,9 @@ def add_file( dataset, registry, json_file, output_path ): if dataset.to_posix_lines: tmpdir = output_adjacent_tmpdir( output_path ) tmp_prefix = 'data_id_%s_convert_' % dataset.dataset_id - if dataset.space_to_tab and not dataset.to_posix_lines: + if dataset.space_to_tab: line_count, converted_path = sniff.convert_newlines_sep2tabs( dataset.path, in_place=in_place, tmp_dir=tmpdir, tmp_prefix=tmp_prefix ) - elif(not dataset.to_posix_lines): + else: line_count, converted_path = sniff.convert_newlines( dataset.path, in_place=in_place, tmp_dir=tmpdir, tmp_prefix=tmp_prefix ) if dataset.file_type == 'auto': ext = sniff.guess_ext( dataset.path, registry.sniff_order )