[ic] leading/trailing spaces after var interpolation

jojo@buchonline.net jojo@buchonline.net
Wed, 20 Sep 2000 09:58:53 +0200 (CEST)


On 19 Sep, Scott Goodman wrote:
> 
> Hi,
> 
> How do I get rid of leading/trailing whitespace when using scratch variables? I'm doing something like
> 
> [set othervar]
^^^^^^ --> [seti ....

> secondpart
> [/seti]
> 
> [seti somevar]
> firstpart-[scratch othervar]
> [seti]
^^^^^^^^ --> [/seti]

> 
> The value of somevar is firstpart- secondpart (space after hyphen). It's not always when I'm nesting a [scratch] inside a
> [set]...the [scratch] always seems to have the leading/trailing space. I'm assuming this is because IC is replacing the '[' and
> ']' with whitespace during interpolation.

This 

[seti othervar]
secondpart
[/seti]

[seti somevar]
firstpart-[scratch othervar]
[/seti]
<BR>

TEST: ****[scratch somevar]*****

make

TEST: **** firstpart- secondpart ***** 
          ^          ^

and this

[seti othervar]secondpart[/seti]

[seti somevar]firstpart-[scratch othervar][/seti]
<BR>

TEST: ****[scratch somevar]*****

make

TEST: ****firstpart-secondpart***** 

Regards,

	Joachim



-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671441
45886 Gelsenkirchen         FAX: 0209 1671441