Where are you getting your $email and $name variables? I think it's  
only going to do that if the string objects actually contain a newline  
at the end; it doesn't do that by default, as far as I know. Perhaps  
you're forgetting to strip them somewhere in your code. If nothing  
else, you could do $email.strip() and $name.strip() in your template.


On 25 Dec 2007, at 13:36, daltski wrote:
> Hi,
> I'm pretty new to web.py but can't seem to find a solution to the
> following small problem.
>
> Is there a way to suppress the new-line when a variable is evaluated
> in templates?, I know to suppress
> the line ending we use a backslash but what about if I want to write
> the following with two variable lookup's on the same line:
> <a href="$email">$name</a>
>
> ..turns out
> <a href="[EMAIL PROTECTED]
> ">Firstname Lastname
> </a>
>
> any ideas, would be appreciated.
>
> Cheers
> Lee.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to