I don't see where you're closing your tags, so I don't know if that's
part of your problem or not. Even if it is not causing a problem,
it's still bad style to not close tags.
Remove the whitespace after your $m->out lines and see if that fixes
it, that is probably where they are coming from.
If not, use a filter to remove the newlines:
<%filter>
s/\n//g;
</%filter>
Not that it should really matter, except for making your html a few
bytes longer -- whitespace in HTML is not rendered by the browser. If
you want the whitespace to be rendered you need to use <p>,
<br>, or set margins/padding with css.
MasterCZ wrote
Help me please.
Sory for my bad english.
I do not understand as to remove emty string (in the output);
For Examle this sample:
_____________________________________________________________________________
<%doc>=================================================
<%perl>
$m->comp('.subcomponent', flavor=>'Hello');
$m->comp('.subcomponent2', flavor=>'By');
<%init>
$r->content_type(q{text/html; charset=utf-8});
<%doc>=================================================
<%def .subcomponent>
<%perl>
$m->out('Testibg 1... '.$flavor);
<%args>
$flavor=>undef;
<%doc>=================================================
<%def .subcomponent2>
<%perl>
$m->out('Testing 2... '.$flavor);
<%args>
$flavor=>undef;
_____________________________________________________________________________
It is returning next output:
_____________________________________________________________________________
Testibg 1... Hello
Testing 2... By
_____________________________________________________________________________
But, first string is empty. First string is returning of the main block.
First string
is trash. How to make that a script did not output empty string.
P.S> For example it's destroys output file over browser.
|
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users