I honestly have no idea what's going on here. Does it still happen if you
remove the #h call? Does it happen from the haml executable? What do you get
if you do = h footnote_symbol.symbol.inspect?

On Sat, Jul 11, 2009 at 2:16 AM, Noel <[email protected]> wrote:

>
> oh sorry, symbol is a string
>
> Erb renders this (as copied from safari web inspector)
>
> <td>
>                  tincidunt eu
>                  <span class="footnote_symbols">
>                    35
>                  </span>
>                </td>
>
> HAML renders this
>
> <td>
>                  tincidunt eu
>                  <span class="footnote_symbols">
>                    3
>                    5
>                  </span>
>                </td>
>
>
> Let me know if you need further clarification.
>
> -Noel
>
>
>
> On Fri, Jul 10, 2009 at 10:33 PM, Nathan Weizenbaum<[email protected]>
> wrote:
> > 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