]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2293,SONAR-2282 Re-apply changes, which were lost
authorEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 20 Apr 2011 16:02:36 +0000 (20:02 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 20 Apr 2011 16:08:59 +0000 (20:08 +0400)
sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb

index e9cf723d21d66cee616d363c20587603a7428d9f..ad8dfbed1baa7d94304fed1f19b026b5efd646fc 100644 (file)
@@ -78,7 +78,7 @@ class ResourceController < ApplicationController
     @expanded=(params[:expand]=='true')
 
     if @snapshot.source
-      source_lines=Java::OrgSonarServerUi::JRubyFacade.new.colorizeCode(@snapshot.source.data, @snapshot.project.language).split("\n")
+      source_lines=@snapshot.source.syntax_highlighted_lines()
       init_scm()
 
       @lines=[]