You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Stefan Eder <st...@ebuconnect.de> on 2012/02/03 22:53:14 UTC

Please consider to trim simple expressions before parsing

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


Re: Please consider to trim simple expressions before parsing

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Willem created a ticket and implementa fix, which will be part of the
next Camel 2.9.1 release.

On Sun, Feb 5, 2012 at 10:10 AM, Claus Ibsen <cl...@gmail.com> wrote:
> 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 <st...@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/



-- 
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/

Re: Please consider to trim simple expressions before parsing

Posted by Claus Ibsen <cl...@gmail.com>.
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 <st...@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/