summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting/macros.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-06 17:47:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-11-06 17:47:27 +0000
commit024ff96ee27aa7e61ceec25a351f6800461d5cf3 (patch)
treed0cc3a32d0990d422916caa5ff4793beb5a990e5 /lib/redmine/wiki_formatting/macros.rb
parent666c54e86c2a8532ff9330d7ce4e9e7d3a44b173 (diff)
downloadredmine-024ff96ee27aa7e61ceec25a351f6800461d5cf3.tar.gz
redmine-024ff96ee27aa7e61ceec25a351f6800461d5cf3.zip
Extract headings and TOC parsing from the textile formatter.
Fixes #2038 and #3707 and will allow to support TOC with other text formatters. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4376 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting/macros.rb')
-rw-r--r--lib/redmine/wiki_formatting/macros.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/macros.rb b/lib/redmine/wiki_formatting/macros.rb
index 6f8d09d60..63cd2ab8e 100644
--- a/lib/redmine/wiki_formatting/macros.rb
+++ b/lib/redmine/wiki_formatting/macros.rb
@@ -112,7 +112,7 @@ module Redmine
@included_wiki_pages ||= []
raise 'Circular inclusion detected' if @included_wiki_pages.include?(page.title)
@included_wiki_pages << page.title
- out = textilizable(page.content, :text, :attachments => page.attachments)
+ out = textilizable(page.content, :text, :attachments => page.attachments, :headings => false)
@included_wiki_pages.pop
out
end