From dca6fb92f999d407dfbf0bd5b2fc40c9623a9dfc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 7 Nov 2010 12:22:22 +0000 Subject: [PATCH] Render level 4 headings in TOC (#5494). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4379 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5