hmm this is very odd
im doing what u suggest and i get the following supposedly correct
HTML
<p id='logo'>
<pre>
 __ ______ __
______
.----.| |--.|__ |.----.| |--..--------.| __ |

| __|| ||__ || __|| < | || __ |
|
____||__|__||______||____||__|__||__|__|__||______|

</
pre>
</p>
however according to firebug, my css and rendered source chart plugin,
it's being interpreted as :
<p id="logo"></p>
<pre>
__ ______ __ ______
.----.| |--.|__ |.----.| |--..--------.| __ |
| __|| ||__ || __|| < | || __ |
|____||__|__||______||____||__|__||__|__|__||______|
</pre>
why is the p self closing ? !!!
(this is possibly off topid since this isnt necessaryily haml's fault)
weepy
On Feb 11, 9:18 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> Ah, that's the problem... you should always wrap the render call in a
> find_and_preserve helper when what your rendering has
> whitespace-sensitive stuff. That should solve it.
>
> - Nathan
>
> weepy wrote:
> > ok so ive narrowed the problem down to something to do with rendering
> > partials
>
> > %p
> > = render :partial => "/layouts/logo"
>
> > and
>
> > %p
> > %pre
> > :preserve
> > __ ______ __ ______
> > .----.| |--.|__ |.----.| |--..--------.| __ |
> > | __|| ||__ || __|| < | || __ |
> > |____||__|__||______||____||__|__||__|__|__||______|
>
> > give different results
>
> > logo.haml is :
>
> > %pre
> > :preserve
> > __ ______ __ ______
> > .----.| |--.|__ |.----.| |--..--------.| __ |
> > | __|| ||__ || __|| < | || __ |
> > |____||__|__||______||____||__|__||__|__|__||______|
>
> > it seems the further absolutely indented the render :partial is, the
> > more incorrect the top line is.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---