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:

<%def .image_value>
% if ( defined $c->stash->{default_image} ) {
%       print $c->stash->{default_image}->$column;
% }
<%args>
$column\
</%args>
</%def>

The escapes the newline at the end of that particular line and
therefore doesn't output it.

Cheers,
Andy

-- 
contact: Andrew Chilton
website: http://kapiti.geek.nz/

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