James, As an alternative, how about a "format=" attribute for the help tag? This would allow supporting text, raw html, markdown, and other options. Also, a "file=" attribute for reading the help from a file would probably make sense. Would this work for you? -- jt On Oct 27, 2008, at 7:29 AM, James Casbon wrote:
Hi guys,
I would like to be able to copy in a man page (or similar) to a tool's help file. At the moment, this fails due to the requirement for ReST.
How falling back to wrapping the text in a <pre> ?:
galaxy-dist james$ hg diff lib/galaxy/tools/__init__.py diff -r d2c5b964e635 lib/galaxy/tools/__init__.py --- a/lib/galaxy/tools/__init__.py Fri Oct 24 16:06:13 2008 -0400 +++ b/lib/galaxy/tools/__init__.py Mon Oct 27 11:28:01 2008 +0000 @@ -419,6 +419,7 @@ self.help = util.rst_to_html(self.help.text) except: log.exception( "error in help for tool %s" % self.name ) + self.help = "<pre>%s</pre>" % self.help.text # Multiple help page case if help_pages: for help_page in help_pages:
cheers, James _______________________________________________ galaxy-user mailing list galaxy-user@bx.psu.edu http://mail.bx.psu.edu/cgi-bin/mailman/listinfo/galaxy-user