Question: Tool Help Section Rendering
2
gravatar for jencabral
3.7 years ago by
jencabral10
Canada
jencabral10 wrote:

I am having a bit of trouble with the rendering of tool help sections. 

When I use the following reStructuredText: 

The first section title "What it Does" is not displayed (tested in Chrome and Firefox):

However if I modify the second section title to use "=" as a separator instead of "-":

The first section title is displayed correctly.

Is this behaving normally? Are 2 section titles using "=" required for the first title to be displayed?

galaxy tools rendering • 824 views
ADD COMMENTlink modified 3.7 years ago by jmchilton1.1k • written 3.7 years ago by jencabral10

This behavior is odd to me - the source of the issue seems to be buried deep in Galaxy (isn't like a web rendering thing or a browser issue).

>>> from galaxy.util import rst_to_html
>>> rst_to_html("Title1\n======\nText1\nText2\n\n") 
u'<p>Text1\nText2</p>\n'
>>> rst_to_html("Title1\n======\nText1\nText2\n\nTitle2\n======")
u'<div class="section" id="title1">\n<h1>Title1</h1>\n<p>Text1\nText2</p>\n</div>\n<div class="section" id="title2">\n<h1>Title2</h1>\n</div>\n'

I'll look into it some more.

 

 

ADD REPLYlink written 3.7 years ago by jmchilton1.1k
0
gravatar for jmchilton
3.7 years ago by
jmchilton1.1k
United States
jmchilton1.1k wrote:

Thanks for the report - I definitely consider this a bug. Our template for RST rendering was causing this inconsistent behavior. I have pushed a fix out to the development branch of Galaxy here - https://github.com/galaxyproject/galaxy/commit/157eba6832a0ce9192e8b36c6241bb74f778fa2f. It will be fixed in the next release (likely version 15.05).

ADD COMMENTlink written 3.7 years ago by jmchilton1.1k
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: 183 users visited in the last hour