Skip to content

Commit ffb94dd

Browse files
committed
#56 Escaping symbols
1 parent 3a0fe27 commit ffb94dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/scoverage/report/ScoverageXmlWriter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ScoverageXmlWriter(sourceDir: File, outputDir: File, debug: Boolean) {
2828
method={stmt.location.method}
2929
start={stmt.start.toString}
3030
line={stmt.line.toString}
31-
symbol={stmt.symbolName}
31+
symbol={Utility.escape(stmt.symbolName)}
3232
tree={stmt.treeName}
3333
branch={stmt.branch.toString}
3434
invocation-count={stmt.count.toString}>
@@ -41,7 +41,7 @@ class ScoverageXmlWriter(sourceDir: File, outputDir: File, debug: Boolean) {
4141
method={stmt.location.method}
4242
start={stmt.start.toString}
4343
line={stmt.line.toString}
44-
symbol={stmt.symbolName}
44+
symbol={Utility.escape(stmt.symbolName)}
4545
tree={stmt.treeName}
4646
branch={stmt.branch.toString}
4747
invocation-count={stmt.count.toString}/>

0 commit comments

Comments
 (0)