removes invalid , from generated html

pull/1603/head
Jens Ulferts 10 years ago
parent 48eb605dd7
commit aa14d8b570
  1. 2
      lib/open_project/text_formatting.rb

@ -383,7 +383,7 @@ module OpenProject
div_class = 'toc'
div_class << ' right' if $1 == '>'
div_class << ' left' if $1 == '<'
out = "<fieldset class='header_collapsible collapsible'><legend title='" + l(:description_toc_toggle)+ "', onclick='toggleFieldset(this);'><a href='javascript:'>#{l(:label_table_of_contents)}</a></legend><div>"
out = "<fieldset class='header_collapsible collapsible'><legend title='" + l(:description_toc_toggle)+ "' onclick='toggleFieldset(this);'><a href='javascript:'>#{l(:label_table_of_contents)}</a></legend><div>"
out << "<ul class=\"#{div_class}\"><li>"
root = headings.map(&:first).min
current = root

Loading…
Cancel
Save