Looking at the obj file I see a line:

$m->print( '
' );

If I take Andrew's suggestion and escape the  component definition then the
line does not appear.

So, on the one hand there a solution (many thanks!).  On the other hand this
feels like a bug, is it?

BTW, I'm seeing the same behavior with external components as well.

- Alan


> -----Original Message-----
> From: Sherrard Burton [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 03, 2007 5:09 PM
> To: Andrew Chilton
> Cc: Alan Humphrey; mason-users@lists.sourceforge.net
> Subject: Re: [Mason] newline before component results
> 
> try interrogating the obj file for this component. if memory serves
> correctly, i think that you end up with spurious newlines with any
> inline subcomponents, methods, and the like.
> 
> Andrew Chilton wrote:
> > On 04/08/07, Andrew Chilton <[EMAIL PROTECTED]> wrote:
> >> Hi Alan,
> >>
> >> On 04/08/07, Alan Humphrey <[EMAIL PROTECTED]> wrote:
> >>> I'm seeing a \r\n inserted before component results and I can't
> figure out
> >>> where they're coming from.
> >>>
> >>> Here's the code:
> >>>
> >>> <%def .image_value>
> >>> % if ( defined $c->stash->{default_image} ) {
> >>> %       print $c->stash->{default_image}->$column;
> >>> % }
> >>> <%args>
> >>> $column
> >>> </%args>
> >>> </%def>
> >> Try putting a \ at the end of the $column line:
> >
> > Ah, I think I mis-read your original post. Oopse, sorry :-) Now I'm
> > not so sure where it is either.
> >
> > Maybe try at the end of this line:
> >
> > <%def .image_value>\
> >
> > Andy
> >


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to