Chris Pimlott created CAMEL-8319:
------------------------------------
Summary: Velocity template example from wiki fails when copy-pasted
Key: CAMEL-8319
URL: https://issues.apache.org/jira/browse/CAMEL-8319
Project: Camel
Issue Type: Bug
Components: website
Affects Versions: 2.14.1
Reporter: Chris Pimlott
I was following the [velocity template example on the
wiki|http://camel.apache.org/velocity.html] and had some confusion over why it
was failing. I was even more confused when the same test worked in the
camel-velocity component project.
What I did was cut-and-paste the template from the wiki page into letter.vm,
and also cut-and-paste the unit test code into a JUnit test.
Finally I noticed that the velocity template, when transcluded in the wiki
page, has extra spaces in the empty lines that make it different than the one
expected by the test. Perhaps you can figure out a way to prevent the extra
space from being added to the template when shown on the wiki, or modify the
template so that it doesn't get affected by that whitespace. Just want to
avoid someone else getting confused like I did.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)