Question

I'm trying to get an empty line in a plain text email. I've tried with \n\n and with \r\n but in both cases, these characters are just displayed as normal text, instead of an empty line.

What am I doing wrong?

(I'm viewing a multipart email in plain text view in Mozilla Thunderbird.)

Thank you for any help! Tom

Was it helpful?

Solution

In Ruby you have two sets of quoting rules, one for single quotes and the %q construct, and another for double quotes and %Q. Single quoting strings treats escape sequences as string literals and prints them as such. Double quoting a string will cause Ruby to process the escape sequences and insert the correct substitutions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top