Question: Tool Help Section Rendering
gravatar for jencabral
3.7 years ago by
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") 
>>> 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
gravatar for jmchilton
3.7 years ago by
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 - 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.


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