THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<transform> <simple>The following text\nis on a new line</simple> </transform> |
Leading and trailing whitespace handling
Available as of Camel 2.10.0
From Camel 2.10.0 onwards, the trim attribute of the expression can be used to control whether the leading and trailing whitespace characters are removed or preserved. The default value is true, which removes the whitespace characters.
Code Block | ||||
---|---|---|---|---|
| ||||
<setBody>
<simple trim="false">You get some trailing whitespace characters. </simple>
</transform>
|
Setting result type
Available as of Camel 2.8
...