aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-07-15 15:01:21 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2015-07-15 15:04:50 +0200
commit05087385ee6a3e032febe5f5f3033aa13a534147 (patch)
tree757e4a6e5eb76a828b4957ec27e1001eb621acf0 /sonar-batch
parent0e95468857452a3a61ca0f697d17f3332ebb48fc (diff)
downloadsonarqube-05087385ee6a3e032febe5f5f3033aa13a534147.tar.gz
sonarqube-05087385ee6a3e032febe5f5f3033aa13a534147.zip
SONAR-6685, SONAR-6351 Fix syntax issue when generating HTML report
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl10
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-batch/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl b/sonar-batch/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl
index 86ba1631eaa..3c5827f43e8 100644
--- a/sonar-batch/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl
+++ b/sonar-batch/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl
@@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Issues report of ${report.getTitle()}</title>
+ <title>Issues report of ${report.getTitle()?html}</title>
<link href="issuesreport_files/sonar.css" media="all" rel="stylesheet" type="text/css">
<link rel="shortcut icon" type="image/x-icon" href="issuesreport_files/favicon.ico">
<script type="text/javascript" src="issuesreport_files/jquery.min.js"></script>
@@ -20,7 +20,7 @@
<#if resourceReport_has_next>,</#if>
</#list>
];
- var nbResources = ${report.getResourcesWithReport()?size};
+ var nbResources = ${report.getResourcesWithReport()?size?c};
var separators = new Array();
function showLine(fileIndex, lineId) {
@@ -165,7 +165,7 @@
<div id="reportHeader">
<div id="logo"><img src="issuesreport_files/sonarqube-24x100.png" alt="SonarQube"/></div>
<div class="title">Issues Report</div>
- <div class="subtitle">${report.getTitle()} - ${report.getDate()?datetime}</div>
+ <div class="subtitle">${report.getTitle()?html} - ${report.getDate()?datetime}</div>
</div>
<#if report.isNoFile()>
@@ -366,7 +366,7 @@
<div class="vtitle">
<i class="icon-severity-${issue.severity()?lower_case}"></i>
<#if issue.message()??>
- <span class="rulename">${issue.message()}</span>
+ <span class="rulename">${issue.message()?html}</span>
<#else>
<span class="rulename">${ruleNameProvider.nameForHTML(issue.ruleKey())}</span>
</#if>
@@ -415,7 +415,7 @@
<div class="vtitle">
<i class="icon-severity-${issue.severity()?lower_case}"></i>
<#if issue.message()??>
- <span class="rulename">${issue.message()}</span>
+ <span class="rulename">${issue.message()?html}</span>
<#else>
<span class="rulename">${ruleNameProvider.nameForHTML(issue.ruleKey())}</span>
</#if>