On 5 December 2010 22:44, Julien <[email protected]> wrote:
> exact same poltergeist for me on rails 3.0.1 and ruby 1.9.2. It adds
> some visible space in browser but completely invisible in the
> generated HTML.
>
> it seems to be when the partial starts by a tag (like "<form ...>").
> It's not a space but a linebreak. If partial starts by basic simple
> text it's fine.
> I checked my ruby source files encoding and it's plain good utf8.
>
> The generated html may look exactly the same using 'source>view' in
> both cases but i'm wondering if there might be some fancy digits
> making this linebreak.

If the html (and javascript and css) are the same then it must render
the same, that is all the browser has to go on.  Copy and paste the
html into a text file for each case and then do a file compare.  Also
if you want to see where the extra space is coming from use firebug in
firefox and you can see which div or whatever the space is in and how
the area is styled.

I note that the OP was not heard from again after he was asked to
check the generated html in this way (with the request re-inforced by
Marnen as it appeared he may not have understood that it was the html
that was to be compared).

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to