Hey all, I got a weird issue where my Ruby tags looking like this: <% (something) -%> actually produces empty lines once I put them on my webhost. Locally while I develop I don''t get them at all. This is really annoying as the resulting HTML code looks really messed up. I have frozen Rails, so it''s the exact same Rails code being run locally as well as in production. What might cause this problem? Known bug? Is there any other way to stop if statements and ends to create blank lines? Thanks, Mathias. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mathias Wittlock wrote:> Hey all, > > I got a weird issue where my Ruby tags looking like this: > <% (something) -%> > actually produces empty lines once I put them on my webhost. Locally > while I develop I don''t get them at all. This is really annoying as > the resulting HTML code looks really messed up. > > I have frozen Rails, so it''s the exact same Rails code being run > locally as well as in production. What might cause this problem? Known > bug? Is there any other way to stop if statements and ends to create > blank lines? > > Thanks, > Mathias.Try %> instead of -%> Abon -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mathias Wittlock
2007-Jan-27 07:15 UTC
Re: Unwanted empty lines in the resulting HTML files.
On 1/27/07, Bontina Chen <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Try %> instead of -%> > > AbonI thought the dash would force that line to not produce any blank lines. Isn''t that the feature? I guess I''ll try without it, can''t hurt. :) Thanks, Mathias. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mathias Wittlock
2007-Jan-27 07:27 UTC
Re: Unwanted empty lines in the resulting HTML files.
On 1/27/07, Bontina Chen <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Try %> instead of -%> > > AbonJust tried this and it made no difference. I''m developing the project under Windows (in RadRails) and it is deployed to a Linux server. Could it be some end-of-line delimiter that''s different between the OSes that''s causing this bug? I can''t be the only one suffering from this? Mathias. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Russell Norris
2007-Jan-27 13:43 UTC
Re: Unwanted empty lines in the resulting HTML files.
Yeah. I used to have this problem. I think it''s definitely an issue with Windows line-endings. I solved it by [ack] editing the files on the server [with pico/nano]. Now I develop on Linux so there''s no issue. I don''t think. RSL On 1/27/07, Mathias Wittlock <wittlock+rubyonrailslist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 1/27/07, Bontina Chen <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > Try %> instead of -%> > > > > Abon > > Just tried this and it made no difference. > > I''m developing the project under Windows (in RadRails) and it is > deployed to a Linux server. Could it be some end-of-line delimiter > that''s different between the OSes that''s causing this bug? I can''t be > the only one suffering from this? > > Mathias. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mathias Wittlock
2007-Jan-28 02:06 UTC
Re: Unwanted empty lines in the resulting HTML files.
On 1/27/07, Russell Norris <sconds-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yeah. I used to have this problem. I think it''s definitely an issue with > Windows line-endings. I solved it by [ack] editing the files on the server > [with pico/nano]. Now I develop on Linux so there''s no issue. I don''t think. > > RSLI looked into this a bit more and it seems like one problem is that if you comment out the line, for example: <% # if whatever? -%> then it will still produce an empty line. But there were other places where the problems disappeared once I started editing the files on the server to try it out. So it might be a combination. Will keep it in mind though, will help me with the trouble shooting if it happens again. Thanks, Mathias. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---