long string , how to insert a new line ?

980 views
Skip to first unread message

Erwin

unread,
Dec 27, 2010, 1:18:51 PM12/27/10
to rails-i18n
I have a very long string I want to split in 2 lines ,

I use \r\n and wrote :

other_web_browsers_warning: "You are welcome to continue using your
current web browser,\r\n but you may experience display issues or
other difficulties."

but this doesn't split the line ... ( tried also the html tag <br /
>... no way )
hope the answer will be a New Year gift ..

Happy New Year 2011

Krzysztof Knapik

unread,
Dec 27, 2010, 1:24:09 PM12/27/10
to rails...@googlegroups.com
http://www.yaml.org/YAML_for_ruby.html

other_web_browsers_warning: |-


You are welcome to continue using your current web browser,

but you may experience display issues or other difficulties.

Regards,
KK

2010/12/27 Erwin <yves_...@mac.com>:

> --
> You received this message because you are subscribed to the Google Groups "rails-i18n" group.
> To post to this group, send email to rails...@googlegroups.com.
> To unsubscribe from this group, send email to rails-i18n+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rails-i18n?hl=en.
>
>

Erwin

unread,
Dec 28, 2010, 3:27:02 AM12/28/10
to rails-i18n
thanks a lot .. will try asap my I18n gem is back working... (just
added new msg)

On 27 déc, 19:24, Krzysztof Knapik <krzysztof.kna...@gmail.com> wrote:
> http://www.yaml.org/YAML_for_ruby.html
>
> other_web_browsers_warning: |-
>   You are welcome to continue using your current web browser,
>   but you may experience display issues or other difficulties.
>
> Regards,
> KK
>
> 2010/12/27 Erwin <yves_duf...@mac.com>:

comopasta Gr

unread,
Nov 25, 2011, 4:34:39 AM11/25/11
to rails...@googlegroups.com
I can't find a way to insert a line break in yaml files. I only have
yaml in one project where \n really makes a new line. No matter how I
try they never appear. I've followed the documentation and tried all
possible ways but nothing.

There must be a trick, encoding or something, but I can't see the
difference between the one that works and the other.

So frustrating!

--
Posted via http://www.ruby-forum.com/.

comopasta Gr

unread,
Nov 25, 2011, 4:42:00 AM11/25/11
to rails...@googlegroups.com
comopasta Gr wrote in post #1033654:

> I can't find a way to insert a line break in yaml files. I only have
> yaml in one project where \n really makes a new line. No matter how I
> try they never appear. I've followed the documentation and tried all
> possible ways but nothing.
>
> There must be a trick, encoding or something, but I can't see the
> difference between the one that works and the other.
>
> So frustrating!

There is nothing better to progress with something than writing to a
forum and complain.

I used \n in the yaml. In the view it was not showing the line break.
Then I check the generated html and actually in the code there was a
line break. I put the text within a <pre> tag and now the view shows the
line break again. I think I'm still missing something but can at least
move from here.

Reply all
Reply to author
Forward
0 new messages