Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

template.pm bug?

Quote Reply
template.pm bug?
whenever i put a tag in front of a ">" no matter how many spaces i put the ">" always ends up RIGHT behind the tag..

what i was doing was

<%site_title%> > <%Title%>

put in the source it always ended up like

PDAmania> Someboringsite..

this code is obviously what is changing the tags..

Code:
$temp =~ s/$begin\s*(.+?)\s*$end/
if (exists $self->{'vars'}{$1}) {
ref ($self->{'vars'}{$1}) eq 'CODE' ?
&{$self->{'vars'}{$1}}($self->{'vars'}) : $self->{'vars'}{$1};
}
else { "Unkown Tag: $1"; }
/goe;

but it doesn't look like it will cause any problems..

alex.. i'm guessing somewhere it delete all the spaces..

possibly the fact i'm using that compact file thing in Links.pm

jerry
Quote Reply
Re: template.pm bug? In reply to
yep.. i was right.. it was that compress thing.. but i want to keep the space! Smile

i believe what you were doing, alex, was you were getting rid of the whitespace inside of html tags.. like for instance..

Code:
< a href = " http://www.gossamer-threads.com/ " target = "_top " >

jerry
Quote Reply
Re: template.pm bug? In reply to
Can't you just go...

<pre>
<%site_title%> > <%Title%>
</pre>


------------------
Michael Bray
....
Review your webhost, or find a new one at http://www.webhostarea.com


Quote Reply
Re: template.pm bug? In reply to
You could try using  ampersand (&) nbsp; instead of a space. Or use ampersand (&) gt; instead of a >.

Let me know if that works..

Cheers,

Alex

[This message has been edited by Alex (edited December 06, 1999).]
Quote Reply
Re: template.pm bug? In reply to
why not using the ASCII code for space,

~~
oops..won't show like that..

it's the "&" plus "nbsp;"

> is "&" + "gt;" and < is "&" + "lt;"

[This message has been edited by lordmouse (edited December 06, 1999).]
Quote Reply
Re: template.pm bug? In reply to
does ascii work in the <title> ?

i always thought it didn't.. or maybe that was cause that was back on netscape 2.0 Smile

jerry