Summary: | [PATCH] <junitreport> produces broken "Properties >>" link | ||
---|---|---|---|
Product: | Ant | Reporter: | Markus Keller <markuskeller> |
Component: | Optional Tasks | Assignee: | Ant Notifications List <notifications> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | acwwat, david.stdenis, dzidzitop, jglick |
Priority: | P2 | ||
Version: | 1.8.2 | ||
Target Milestone: | 1.8.3 | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
HTML file with broken Properties link
Patch for escaping newline chars properly in junit report stylesheets |
Description
Markus Keller
2011-04-11 11:00:12 UTC
Created attachment 26873 [details]
HTML file with broken Properties link
It looks like the XSL stylesheets junit-frames.xsl and junit-noframes.xsl are not escaping newline characters in the javascript sections. I found this blog page that pretty much sums up the problem and remedy: http://zanstra.com/base/blog/xslt_string_escape Specifically, the stylesheets should replace 
 with \r and 
 with \n. I'll attach a patch that involves updating the JS-escape template in the stylesheet shortly. Created attachment 27001 [details]
Patch for escaping newline chars properly in junit report stylesheets
The xsl files to patch are in ant/src/etc and named the same as the diffs files respectively.
Ping. Could this go into 1.8.3? Committed revision 1199931. Please verify fix in a nightly build if you have a moment. Looks good, thanks. Sorry for the delay. Tested with nightly build from https://builds.apache.org/view/A-F/view/Ant/job/Ant_JDK_1.4/486/artifact/trunk/build/lib/ |