summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-05-02 15:35:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-05-02 15:35:41 +0000
commitc65d696f41a1657afaf543a8410500e7dc9ec531 (patch)
tree41f9a1c3b5689377d68b750da873ac70af618e61 /lib/redmine/wiki_formatting.rb
parent63951812a1ed56e61cd6e5ee8439c772f800521c (diff)
downloadredmine-c65d696f41a1657afaf543a8410500e7dc9ec531.tar.gz
redmine-c65d696f41a1657afaf543a8410500e7dc9ec531.zip
Fixed: error when using upcase language name in coderay (#1162) (Windows specific).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1405 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting.rb')
-rw-r--r--lib/redmine/wiki_formatting.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb
index 553f77132..8866e8cde 100644
--- a/lib/redmine/wiki_formatting.rb
+++ b/lib/redmine/wiki_formatting.rb
@@ -56,7 +56,7 @@ module Redmine
content = @pre_list[$1.to_i]
if content.match(/<code\s+class="(\w+)">\s?(.+)/m)
content = "<code class=\"#{$1} CodeRay\">" +
- CodeRay.scan($2, $1).html(:escape => false, :line_numbers => :inline)
+ CodeRay.scan($2, $1.downcase).html(:escape => false, :line_numbers => :inline)
end
content
end