[hg] galaxy 3041: Unicode fix: allow non-ascii characters to be ...
details: http://www.bx.psu.edu/hg/galaxy/rev/2eb1e3c4d143 changeset: 3041:2eb1e3c4d143 user: jeremy goecks <jeremy.goecks@emory.edu> date: Mon Nov 16 15:06:07 2009 -0500 description: Unicode fix: allow non-ascii characters to be displayed in tool help. diffstat: templates/tool_form.mako | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diffs (26 lines): diff -r 84f96ae27ef4 -r 2eb1e3c4d143 templates/tool_form.mako --- a/templates/tool_form.mako Mon Nov 16 14:52:51 2009 -0500 +++ b/templates/tool_form.mako Mon Nov 16 15:06:07 2009 -0500 @@ -221,11 +221,17 @@ %if tool.help: <div class="toolHelp"> <div class="toolHelpBody"> - %if tool.has_multiple_pages: - ${tool.help_by_page[tool_state.page]} - %else: - ${tool.help} - %endif + <% + if tool.has_multiple_pages: + tool_help = tool.help_by_page[tool_state.page] + else: + tool_help = tool.help + + # Convert to unicode to display non-ascii characters. + if type( tool_help ) is not unicode: + tool_help = unicode( tool_help, 'utf-8') + %> + ${tool_help} </div> </div> %endif
participants (1)
-
Greg Von Kuster