Long string , how to insert a new line?


#1

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


#2

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 removed_email_address@domain.invalid:


#3

thanks a lot … will try asap my I18n gem is back working… (just
added new msg)


#4

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!


#5

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

 tag and now the view shows the
line break again. I think I’m still missing something but can at least
move from here.