I'm sorry, I'm still not getting it. Is footnote_symbol.symbol a string? An
array? What's the actual HTML output of Haml vs. ERB?

On Fri, Jul 10, 2009 at 3:34 PM, Noel <[email protected]> wrote:

>
> Here is an example:
>
> HAML view has this
> =h footnote_symbol.symbol
>
> which produces this:
>
> http://skitch.com/noelgomez/ba821
>
> I am talking about the space between the 4 and the 3
>
> In the DB the symbols are single characters.
>
> Here is the same using erb which just prints 43
> <%=h footnote_symbol.symbol %>
>
> http://skitch.com/noelgomez/ba826
>
> Not sure if I am doing something wrong, but odd that erb does what I
> expect.
>
>
> On Fri, Jul 10, 2009 at 11:27 AM, Nathan Weizenbaum<[email protected]>
> wrote:
> > I'm not entirely sure what you mean. What's the exact Ruby value of
> > footnote_symbol.symbol?
> >
> > On Fri, Jul 10, 2009 at 9:08 AM, Noel <[email protected]> wrote:
> >>
> >> I have a very simple partial
> >>
> >> = h footnote_symbol.symbol
> >>
> >> I verified the length of symbol to be 1.  My dev data is (*,1,2,3,4...)
> >>
> >> when this renders as an example I get
> >>
> >> 2 5
> >>
> >> but I was expecting
> >> 25
> >>
> >> if I change the partial to erb instead of haml I do get 25.
> >>
> >> I am using haml (2.2.0)
> >>
> >> Any ideas where the extra space is coming from?
> >>
> >> -Noel
> >>
> >>
> >
> >
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to