My vote would be for *no* auto trim. Makes things predictable and easy
to understand.
Hadrian
On 05/20/2012 06:33 AM, Claus Ibsen wrote:
Hi
We have a number of JIRA tickets which is related
https://issues.apache.org/jira/browse/CAMEL-5294
https://issues.apache.org/jira/browse/CAMEL-5285
https://issues.apache.org/jira/browse/CAMEL-4990
When you use the XML DSLs you may have a coding style where you have
newlines, and spaces etc. in the text of the XML tags, eg
<transform>
<simple>
data=${body}
</simple>
</transform>
Notice how we have new lines in the<simple> text.
Below shows what the intent is without newlines:
<transform>
<simple>data=${body}</simple>
</transform>
Today we will auto trim Simple expressions (but not the others). IMHO
I think this is wrong and we should make this consistent, to either
- no auto trim
- auto trim all expressions
If we auto trim, and you want an explicit newline, then the end user
can use a \n to indicate newline, eg
<transform>
<simple>data=${body}\n</simple>
</transform>
I think we should go for a
- auto trim all expressions
- end users can use \n to force new lines
Any thoughts?