# HG changeset patch
# User fubar
# Date 1421037279 18000
# Node ID 81198714ac8e55a7854abbc4c1c0044d007259ee
# Parent  e9c858c8aa6e14cee4a882cbc2405b625f8bc880
Uploaded

diff -r e9c858c8aa6e -r 81198714ac8e rgToolFactory2.py
--- a/rgToolFactory2.py	Sun Jan 11 23:06:21 2015 -0500
+++ b/rgToolFactory2.py	Sun Jan 11 23:34:39 2015 -0500
@@ -197,8 +197,8 @@
         tscript = open(self.sfile,'w') # use self.sfile as script source for Popen
         tscript.write(self.script)
         tscript.close()
-        self.indentedScript = "<![CDATA[%s]]>" % '\n'.join([' %s' % x for x in rx]) # for restructured text in help
-        self.escapedScript = "<![CDATA[%s]]>" % self.script
+        self.indentedScript = "  %s" % '\n'.join([' %s' % html_escape(x) for x in rx]) # for restructured text in help
+        self.escapedScript = "%s" % '\n'.join([' %s' % html_escape(x) for x in rx])
         self.elog = os.path.join(self.opts.output_dir,"%s_error.log" % self.toolname)
         if opts.output_dir: # may not want these complexities 
             self.tlog = os.path.join(self.opts.output_dir,"%s_runner.log" % self.toolname)