List Info

Thread: Re: Breaking space in an block




Re: Breaking space in an block
user name
2007-06-26 03:47:45
  works great.  Didn't know I could do that.  Many
thanks.

Out of interest for a deeper understanding of embperl, why
doesn't a
regular space do the trick?

Thanks

Michael

On 6/25/07, Lars Kelto <earwigtaar.com> wrote:
>   He wants it conditional on the if.  Try:
>
> ABC[$ if (1==1) $]&#32;[$ endif $]123
>
>   Seems to work for me.
>
>
> Lars
>
>
>
> -----Original Message-----
> From: Gavin Spomer [mailto:spomergcwu.EDU]
> Sent: Monday, June 25, 2007 11:26 AM
> To: embperlperl.apache.org
> Subject: Re: [SPAM] Breaking space in an [$ if $]
block
>
> 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 <smithmgmail.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-unsubscribeperl.apache.org
> For additional commands, e-mail: embperl-helpperl.apache.org
>
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: embperl-unsubscribeperl.apache.org
> For additional commands, e-mail: embperl-helpperl.apache.org
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: embperl-unsubscribeperl.apache.org
For additional commands, e-mail: embperl-helpperl.apache.org


Re: Breaking space in an block
country flaguser name
United States
2007-06-26 17:31:01
It has to do with HTML, not Embperl.  Generally, whitespace
in an HTML 
document is ignored.  The &32; or otherwise written as
&nsbsp; is a 
non-breaking space and specifically not ignored.

Cliff

Michael Smith wrote:
> &#32; works great.  Didn't know I could do that. 
Many thanks.
>
> Out of interest for a deeper understanding of embperl,
why doesn't a
> regular space do the trick?
>
> Thanks
>
> Michael
>
> On 6/25/07, Lars Kelto <earwigtaar.com> wrote:
>>   He wants it conditional on the if.  Try:
>>
>> ABC[$ if (1==1) $]&#32;[$ endif $]123
>>
>>   Seems to work for me.
>>
>>
>> Lars
>>
>>
>>
>> -----Original Message-----
>> From: Gavin Spomer [mailto:spomergcwu.EDU]
>> Sent: Monday, June 25, 2007 11:26 AM
>> To: embperlperl.apache.org
>> Subject: Re: [SPAM] Breaking space in an [$ if $]
block
>>
>> 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 <smithmgmail.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-unsubscribeperl.apache.org
>> For additional commands, e-mail: embperl-helpperl.apache.org
>>
>>
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: embperl-unsubscribeperl.apache.org
>> For additional commands, e-mail: embperl-helpperl.apache.org
>>
>>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: embperl-unsubscribeperl.apache.org
> For additional commands, e-mail: embperl-helpperl.apache.org


------------------------------------------------------------
---------
To unsubscribe, e-mail: embperl-unsubscribeperl.apache.org
For additional commands, e-mail: embperl-helpperl.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )