From: Jean-Philippe Lang Date: Sun, 7 Nov 2010 12:22:22 +0000 (+0000) Subject: Render level 4 headings in TOC (#5494). X-Git-Tag: 1.1.0~196 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dca6fb92f999d407dfbf0bd5b2fc40c9623a9dfc;p=redmine.git Render level 4 headings in TOC (#5494). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4379 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b42960ec0..cdc8414ff 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -675,7 +675,7 @@ module ApplicationHelper end TOC_RE = /

\{\{([<>]?)toc\}\}<\/p>/i unless const_defined?(:TOC_RE) - HEADING_RE = /]+)?>(.+?)<\/h(1|2|3)>/i unless const_defined?(:HEADING_RE) + HEADING_RE = /]+)?>(.+?)<\/h(1|2|3|4)>/i unless const_defined?(:HEADING_RE) # Headings and TOC # Adds ids and links to headings and renders the TOC if needed unless options[:headings] is set to false