]> source.dussan.org Git - redmine.git/commitdiff
Fixed: error when using upcase language name in coderay (#1162) (Windows specific).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 2 May 2008 15:35:41 +0000 (15:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 2 May 2008 15:35:41 +0000 (15:35 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1405 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting.rb

index 553f771322bea51f83f6b24013702859bcd55b72..8866e8cde9da7c46d1bb08385a923baa62919a5b 100644 (file)
@@ -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