diff rgToolFactory2.py @ 6:81198714ac8e draft

Uploaded
author fubar
date Sun, 11 Jan 2015 23:34:39 -0500
parents e9c858c8aa6e
children 61381bad936d
line wrap: on
line diff
--- 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)