perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nate Smith <n...@thebackrow.net>
Subject Re: Question about preserving whitespace...
Date Tue, 10 Sep 2002 15:24:52 GMT
On Tue, Sep 10, 2002 at 10:19:51AM -0500, Charlie Hills wrote:
> [$ if (this) $] * some text
> [$ endif $]
> 
> [$ if (that) $] * some other text
> [$ endif $]

> I even tried tossing in a [- print "\n" -] statement, to no avail!

Realize that that is only making a hard break in the html document that
then gets parsed by the browser.. HTML doesn't recognize whitespace in
the document itself without a <pre> (preformatted) tag.  So you could do
one of two things:

 [$ if (blah) $] text1
 [$ endif $]
 <br>
 [$ if (blah2) $] text2
 [$ endif $]
   

or use <pre> .. </pre> tags, but that's just wrong :)

Nate Smith

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message