Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7
-
None
Description
In DOXIASITETOOLS-87 all template line ending is normalied with custom resource loader for Velocity but this is the wrong place because it is not a Velocity problem. This problem is solely at SiteRenderer side.
Revert DOXIASITETOOLS-87 and apply this rather simple patch to solve the problem in the correct spot:
Index: DefaultSiteRenderer.java =================================================================== --- DefaultSiteRenderer.java (revision 1733265) +++ DefaultSiteRenderer.java (working copy) @@ -701,7 +698,9 @@ try { - template.merge( context, writer ); + StringWriter sw = new StringWriter(); + template.merge( context, sw ); + writer.write( sw.toString().replaceAll( "\r?\n", SystemUtils.LINE_SEPARATOR ) ); } catch ( Exception e ) {
Attachments
Attachments
Issue Links
- supercedes
-
DOXIASITETOOLS-87 inconsistent newlines between template content from skin and generated content
- Closed