Repository 'gemini_burden'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/gemini_burden

Changeset 3:1a4c5adcd587 (2018-10-17)
Previous changeset 2:fd6052cdc2c3 (2017-11-09) Next changeset 4:c70d79e0eed7 (2018-12-14)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gemini commit 1f7418d74c6fcd61a050106ca5f9b66ab9a4c33d
modified:
gemini_macros.xml
b
diff -r fd6052cdc2c3 -r 1a4c5adcd587 gemini_macros.xml
--- a/gemini_macros.xml Thu Nov 09 13:16:06 2017 -0500
+++ b/gemini_macros.xml Wed Oct 17 13:28:45 2018 -0400
b
@@ -88,14 +88,28 @@
 
     <xml name="sanitize_query">
         <sanitizer invalid_char="">
-            <valid initial="string.printable"/>
+            <valid initial="string.printable">
+                <remove value="&apos;" />
+            </valid>
+            <mapping initial="none">
+                <add source="&apos;" target="&apos;&quot;&apos;&quot;&apos;" />
+            </mapping>
        </sanitizer>
     </xml>
 
+    <token name="@MULTILN_SQL_EXPR_TO_CMDLN@">
+        #set $sql_expr = str($multiline_sql_expr).strip()
+        #if str($sql_expr):
+            #set $sql_expr = $sql_expr.replace('\r\n', '\n')
+            #set $sql_expr = $sql_expr.replace('\r', '\n')
+            #set $sql_expr = $sql_expr.replace('\\\n', ' ')
+            $cmdln_param '$sql_expr'
+        #end if
+    </token>
+
     <token name="@CMDLN_SQL_FILTER_FILTER_OPTION@">
         #if str($filter.filter_selector) == 'yes' and $filter.filter:
-            #import pipes
-            --filter ${ pipes.quote( str( $filter.filter ) ) or "''" }
+            --filter '${ str( $filter.filter ) }'
         #end if
     </token>