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 2012/05/27 14:24:23 UTC

[jira] [Resolved] (CAMEL-5294) DSL expressions should auto trim

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

Claus Ibsen resolved CAMEL-5294.
--------------------------------

    Resolution: Fixed

Added trim option to language expression in the DSL. So people can turn this off, if used in rare cases.
                
> DSL expressions should auto trim
> --------------------------------
>
>                 Key: CAMEL-5294
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5294
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-blueprint, camel-spring
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: CAMEL-5294.patch
>
>
> See CAMEL-5285
> We should auto trim the XML DSLs as people may configure the DSL with newlines, etc
> {code:xml}
> <transform>
>   <simple>
>     data=${body}
>   </simple>
> </transform>
> {code}
> Notice how we use new lines in the simple, what you should really do is:
> {code:xml}
> <transform>
>   <simple>data=${body}</simple>
> </transform>
> {code}
> We should then support escapes, so you can do \n to indicate newline

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira