My template is generating javadocs. The input string may have \n characters that I wish to convert to "\n * " to preserve the intent of the comment string.
In java, I am able to accomplish this with "xxx\nyyy".replaceAll("\n", "\n *
")
I have tried a couple of variations in the velocity template, but so far,
the replaceAll is not replacing the strings.
A hex dump of the output file shows that the result of the generation is
xxx\nyyy (\n == 0x0a).
What am I doing wrong?
Thanks
Michael Giroux
