commit/galaxy-central: greg: Add an additional filter to correct improper image declarations so they will be displayed in tool config help sections or reqdme files contained in tool shed repositories.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/836b6a16e5a9/ Changeset: 836b6a16e5a9 User: greg Date: 2013-10-04 16:13:44 Summary: Add an additional filter to correct improper image declarations so they will be displayed in tool config help sections or reqdme files contained in tool shed repositories. Affected #: 1 file diff -r 1bb04279216e0abf4e24b9299cccc06c10b9c0ac -r 836b6a16e5a9e499c0a07b23b69c25a3f17eba98 lib/tool_shed/util/shed_util_common.py --- a/lib/tool_shed/util/shed_util_common.py +++ b/lib/tool_shed/util/shed_util_common.py @@ -1519,7 +1519,9 @@ route_to_images = '/repository/static/images/%s' % encoded_repository_id # We used to require $PATH_TO_IMAGES, but we now eliminate it if it's used. text = text.replace( '$PATH_TO_IMAGES', '' ) - # We can eliminate the default setting of /static/images since the routs will properly display images contained in that directory. + # Eliminate the invalid setting of ./static/images since the routes will properly display images contained in that directory. + text = text.replace( './static/images', '' ) + # Eliminate the default setting of /static/images since the routes will properly display images contained in that directory. text = text.replace( '/static/images', '' ) # Use regex to instantiate routes into the defined image paths. for match in re.findall( '.. image:: (?!http)/?(.+)', text ): Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org