Question: Falling Back To Text For Tool Descriptions
0
gravatar for James Casbon
10.1 years ago by
James Casbon • 370
James Casbon • 370 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
 ?:

galaxy-dist james$ hg diff lib/galaxy/tools/__init__.py
diff -r d2c5b964e635 lib/galaxy/tools/__init__.py
+++ 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 = "
%s
" % self.help.text # Multiple help page case if help_pages: for help_page in help_pages: cheers, James
galaxy • 462 views
ADD COMMENT • link • modified 10.1 years ago by James Taylor • 70 • written 10.1 years ago by James Casbon • 370
0
gravatar for James Taylor
10.1 years ago by
James Taylor • 70
James Taylor • 70 wrote:
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
ADD COMMENT • link written 10.1 years ago by James Taylor • 70
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 149 users visited in the last hour