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
This commit is contained in:
Jean-Philippe Lang 2008-05-02 15:35:41 +00:00
parent 63951812a1
commit c65d696f41
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ module Redmine
content = @pre_list[$1.to_i] content = @pre_list[$1.to_i]
if content.match(/<code\s+class="(\w+)">\s?(.+)/m) if content.match(/<code\s+class="(\w+)">\s?(.+)/m)
content = "<code class=\"#{$1} CodeRay\">" + 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 end
content content
end end