http://www.turbogears.org/preview/docs/gs/othertemplate.html
maybe looking at how that code works (expose) there could be a way to either pass in values to change the serializer behavior or do it as a config option, but all this comes below TG enhancements, and modifications instead of a direct solution to your problem
On 6/11/06, Michael P. Soulier <[EMAIL PROTECTED]> wrote:
Hello,
In my master.kid file I have a common menu.
<div id="menu">
<a href="" src="" alt="logo" width="800" /></a><a href="" alt="Who We Are" src="" height="39" width="164" /></a><a href="" alt="What We Do" src="" height="39" width="159" /></a><a href="" alt="Fees" src="" height="39" width="92" /></a><a href="" alt="Photo Gallery" src="" height="39" width="167" /></a><a href="" alt="Contact Us" src="" height="39" width="152" /></a><a href="" alt="Links" src="" height="39" width="66" /></a>
</div>
The whitespace is deliberately removed to prevent spaces between these
elements. Unfortunately, kid expands this to the following:
<DIV ID="menu">
<A HREF=""
<IMG SRC="" ALT="logo" WIDTH="800">
</A>
<A HREF=""> <IMG SRC="" ALT="Who We Are" WIDTH="164" HEIGHT="39">
</A>
<A HREF=""> <IMG SRC="" ALT="What We Do" WIDTH="159" HEIGHT="39">
</A>
<A HREF=""> <IMG SRC="" ALT="Fees" WIDTH="92" HEIGHT="39">
</A>
<A HREF=""> <IMG SRC="" ALT="Photo Gallery" WIDTH="167" HEIGHT="39">
</A>
<A HREF=""
<IMG SRC="" ALT="Contact Us" WIDTH="152" HEIGHT="39">
</A>
<A HREF=""> <IMG SRC="" ALT="Links" WIDTH="66" HEIGHT="39">
</A>
</DIV>
How do I prevent kid from expanding it in this way?
Thanks,
Mike
--
Michael P. Soulier <[EMAIL PROTECTED] >
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---
- [TurboGears] Re: whitespace added by kid David Stanek
- [TurboGears] Re: whitespace added by kid Jorge Vargas
- [TurboGears] Re: whitespace added by kid msoulier
- [TurboGears] Re: whitespace added by kid Jorge Vargas

