You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/02/06 07:29:36 UTC

[jira] [Resolved] (CAMEL-8319) Velocity template example from wiki fails when copy-pasted

     [ https://issues.apache.org/jira/browse/CAMEL-8319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-8319.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.15.0
         Assignee: Claus Ibsen

Yeah we can use double quote which I assume would show better.

> 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: Task
>          Components: documentation
>    Affects Versions: 2.14.1
>            Reporter: Chris Pimlott
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.15.0
>
>
> 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)