On 4 November 2010 23:26, Darrend Brown <[email protected]> wrote: > I, too, am getting this problem. > > Using <%- -%> wouldn't solve this, since it suppresses white space in > the source HTML, not on the page. > > I can paste the exact same text from my partial into my view and the > page renders fine. The moment I go to the partial, even though the > source HTML looks identical, I have additional white space on top.
Are you saying that the html, viewed via View > Page Source or similar in your browser is identical in the two cases, but it shows differently in the browser? I don't think this is possible, all the browser can see is the html (and scripts and css which we assume are identical) so it cannot tell whether you have used a partial or not. I suggest that you copy the complete page html in the two cases and paste it into two files. Then compare the files with a file comparison utility. I am sure you will see a difference. 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.

