]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6576 fix side-effects of issue location highlighting
authorStas Vilchik <vilchiks@gmail.com>
Fri, 21 Aug 2015 09:40:53 +0000 (11:40 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 21 Aug 2015 09:40:53 +0000 (11:40 +0200)
server/sonar-web/src/main/js/components/source-viewer/main.js

index 3cf0b381b72ba52e0cc28f711ac9b9fa46457197..dca487a356867528dce08e0488428b92eb11d15f 100644 (file)
@@ -792,9 +792,10 @@ define([
                 _location = { from: from, to: to };
 
             // mark issue location in the source code
-            var code = row.find('pre').html(),
+            var codeEl = row.find('.source-line-code-inner > pre'),
+                code = codeEl.html(),
                 newCode = highlightLocations(code, [_location], 'source-line-code-secondary-issue');
-            row.find('pre').html(newCode);
+            codeEl.html(newCode);
           }
         },