summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-01 16:46:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-01 16:46:46 +0000
commit48fb20f5407ce8905755d91149dc7f8c7915c6d0 (patch)
tree6dc055026908cbd31fdb3ad7ddcd720f49ceb1ef /lib/redmine
parent0fc93a119753ba8e8853d1a745c1b0ecfbee0d12 (diff)
downloadredmine-48fb20f5407ce8905755d91149dc7f8c7915c6d0.tar.gz
redmine-48fb20f5407ce8905755d91149dc7f8c7915c6d0.zip
Fixed TOC positionning in wiki pages.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@791 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/wiki_formatting.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb
index c5d4253f0..6f2aea0ae 100644
--- a/lib/redmine/wiki_formatting.rb
+++ b/lib/redmine/wiki_formatting.rb
@@ -60,6 +60,7 @@ module Redmine
text.gsub!(/<p>\{\{([<>]?)toc\}\}<\/p>/i) do
div_class = 'toc'
div_class << ' right' if $1 == '>'
+ div_class << ' left' if $1 == '<'
out = "<div class=\"#{div_class}\">"
@toc.each_with_index do |heading, index|
# remove wiki links from the item