it''s weird, as yaml doc stating it should work : en:> site_under_maintenance_message: "We are sorry,\n this site is currently > under maintenance, please try later..."should display as : We are sorry,> this site is currently under maintenance, please try later...but it''s displayed as a single line We are sorry, this site is currently under maintenance, please try later... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/GQ1o1V9UadEJ. For more options, visit https://groups.google.com/groups/opt_out.
You did not say how this is being displayed. If it is being displayed on a web page, new lines are always discarded. You need to use ''<br/>'' instead of ''\n''. On Wednesday, April 10, 2013 4:29:11 AM UTC-4, Erwin wrote:> > it''s weird, as yaml doc stating it should work : > > en: >> site_under_maintenance_message: "We are sorry,\n this site is currently >> under maintenance, please try later..." > > > should display as : > > We are sorry, >> this site is currently under maintenance, please try later... > > > but it''s displayed as a single line > > We are sorry, this site is currently under maintenance, please try later... > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/MRmW6hu52swJ. For more options, visit https://groups.google.com/groups/opt_out.
yes, thanks it''s going to be displayed on a web page .... Le mercredi 10 avril 2013 15:36:07 UTC+2, jsnark a écrit :> > You did not say how this is being displayed. If it is being displayed on > a web page, new lines are always discarded. You need to use ''<br/>'' > instead of ''\n''. > > On Wednesday, April 10, 2013 4:29:11 AM UTC-4, Erwin wrote: >> >> it''s weird, as yaml doc stating it should work : >> >> en: >>> site_under_maintenance_message: "We are sorry,\n this site is >>> currently under maintenance, please try later..." >> >> >> should display as : >> >> We are sorry, >>> this site is currently under maintenance, please try later... >> >> >> but it''s displayed as a single line >> >> We are sorry, this site is currently under maintenance, please try >>> later... >> >>-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Y3NrEi2wVmAJ. For more options, visit https://groups.google.com/groups/opt_out.
Robert Walker
2013-Apr-11 19:01 UTC
Re: yaml not escaping break line in double quoted string
Kad Kerforn wrote in post #1105178:> yes, thanks it''s going to be displayed on a web page .... > > > Le mercredi 10 avril 2013 15:36:07 UTC+2, jsnark a crit :http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-simple_format -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.