Skip to content

Commit 7cdafed

Browse files
authored
Merge pull request #1597 from pavanvidem/pavanvidem-rl-patch
recurring_lines.xml add tab as a valid character input
2 parents 2debd4e + 9aa967e commit 7cdafed

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

tools/text_processing/text_processing/recurring_lines.xml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="tp_text_file_with_recurring_lines" name="Create text file" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
1+
<tool id="tp_text_file_with_recurring_lines" name="Create text file" version="@TOOL_VERSION@+galaxy1" profile="@PROFILE@">
22
<description>with recurring lines</description>
33
<macros>
44
<import>macros.xml</import>
@@ -21,7 +21,13 @@
2121
<inputs>
2222
<repeat name="token_set" title=" selection" min="1">
2323
<param name="line" type="text"
24-
label="Characters to insert" help="Specify the characters that will be inserted X times in every line"/>
24+
label="Characters to insert" help="Specify the characters that will be inserted X times in every line">
25+
<sanitizer>
26+
<valid initial="default">
27+
<add value="&#9;" /> <!-- &#9; is the HTML entity for a tab -->
28+
</valid>
29+
</sanitizer>
30+
</param>
2531
<conditional name="repeat_select">
2632
<param name="repeat_select_opts" type="select" label="Specify the number of iterations by">
2733
<option value="file">File (for each line in file)</option>
@@ -68,6 +74,30 @@
6874
</repeat>
6975
<output name="outfile" file="recurring_result2.txt" />
7076
</test>
77+
<test>
78+
<repeat name="token_set">
79+
<param name="line" value="a&#9;b&#9;c&#9;d&#9;e&#9;f" />
80+
<conditional name="repeat_select">
81+
<param name="repeat_select_opts" value="user" />
82+
<param name="times" value="2" />
83+
</conditional>
84+
</repeat>
85+
<repeat name="token_set">
86+
<param name="line" value="2&#9;3&#9;4&#9;5&#9;6&#9;7" />
87+
<conditional name="repeat_select">
88+
<param name="repeat_select_opts" value="user" />
89+
<param name="times" value="1" />
90+
</conditional>
91+
</repeat>
92+
<repeat name="token_set">
93+
<param name="line" value="1&#9;2&#9;3&#9;4&#9;5&#9;6" />
94+
<conditional name="repeat_select">
95+
<param name="repeat_select_opts" value="user" />
96+
<param name="times" value="1" />
97+
</conditional>
98+
</repeat>
99+
<output name="outfile" file="sort_rows_results1.bed" />
100+
</test>
71101
</tests>
72102
<help>
73103
<![CDATA[

0 commit comments

Comments
 (0)