perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Smith" <smi...@gmail.com>
Subject Re: [SPAM] Breaking space in an [$ if $] block
Date Tue, 26 Jun 2007 08:45:19 GMT
Thanks guys

Actually I wanted the space to be conditional - ie for the code to putput

ABC123

sometimes

and

ABC 123

at other times.

So I need the space to be in an [$ if $] block



On 6/25/07, Gavin Spomer <spomerg@cwu.edu> wrote:
> Not quite sure what you mean by "breakable" space (as in "line break"?), but if you put
a space immediately after the character 'C' in your example:
>
>    ABC [$ if (1==1) $] [$ endif $]123
>
> it will output:
>
>    ABC 123
>
> Is that what you wanted or have I misunderstood you?
>
> Gavin Spomer
> Systems Programmer
> Brooks Library
> Central Washington University
>
> >>> Michael Smith <smithm@gmail.com> 06/25/07 4:32 AM >>>
> Hi there,
>
> I want to create a breakable space within my HTML.
>
> Here's a short example:
>
> ABC[$ if (1==1) $] [$ endif $]123
>
> which outputs
>
> ABC123 .. with no space despite there being a space in between [$ if
> $] and [$ endif $]
>
> I know I can put an   but I actually want a breakable space.  Is
> there any way to achieve this?
>
> Thanks
>
> Michael
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>

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


Mime
View raw message