Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.5.4, 1.5.5, 1.5.6, 1.6-beta-1
-
None
-
None
-
Patch
Description
groovy.text.SimpleTemplateEngine doesn't handle backslashes correctly. Trying to parse the following template creates an error:
asd\asd
The bug can be reproduced with the following Groovy Snippet (can be copy & pasted into the GroovyConsole):
new groovy.text.SimpleTemplateEngine().createTemplate(new StringReader("asd\\asd"));
A possible fix for this would probably need to go here:
Something like the following would need to be added there I think:
if (c == '\\') { sw.write("\\\\"); }