camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Please consider to trim simple expressions before parsing
Date Sun, 05 Feb 2012 09:10:50 GMT
Hi

Yeah from a XML point of view, where people may define it as
<simple>
   foo
</simple>

I guess it would be rare for people wanting to have leading newlines,
or tab's in the expression, certainly not for predicates.

Fell free to create a JIRA ticket
http://camel.apache.org/support

And patches with unit tests is of course welcome
http://camel.apache.org/contributing.html

On Fri, Feb 3, 2012 at 10:53 PM, Stefan Eder <stefan.eder@ebuconnect.de> wrote:
> Currently (2.9.0) simple expressions starting with '\n' cause a
> SimpleParserException to be thrown (Unexpected token ...).
> Stripping leading/trailing whitespace would allow more flexible formatting
> of Spring DSL that embeds simple language expressions.
>
> Thanks, Stefan
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message