On 6 déc, 09:53, Colin Law <[email protected]> wrote:
> 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


Hi ! Thanks for reply, i have news:
In Firefox, the generated html seems exactly the same, but in Chrome,
i can see an extra-digit.
Screen: 
http://lh4.ggpht.com/_Hc_PJsJ5czI/TPy9KFd3RsI/AAAAAAABNIc/bApGqfK32fE/Chrome-strange-digit.png

So it's no css issue.

the fact that it adds a space (seen as linebreak) is because it's seen
by browser as something to print, so if your template starts by <h1>
or <form...> it's by default printed on next line.

So even if it's no css issue, css can correct it if you define
"display:inline;" for your <h1>, <form>, etc...

Still, why this digit appears is a mystery and my guess would be that
either:
-server (in my case: WebRick) outputs some tiny bits of crap when
mixing views
-my komodo editor added some stuff at the beggining of my ruby files
but i can't see anything special when opening my ruby code with
radrails.

hope this will help someone!

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