+1 Make sense for me. Best, Christian
Sent from a mobile device Am 20.05.2012 12:34 schrieb "Claus Ibsen" <claus.ib...@gmail.com>: > 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? > > > > > -- > Claus Ibsen > ----------------- > CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com > FuseSource > Email: cib...@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ >