I have an column in database as welcome_emil of type TEXT.
I have saved the following code content saved in column as :
Thanks for Joining in! \r\n\r\nYou can loginor refer your friends using your %referral_link%."
When i try to render this code into my email that is sent to the user. Complete content goes fine but
\r\n\r\n
this is omitted and all text appear inline.
Here is the code that i use
<%= p @company.welcome_email.gsub('%referral_link%',@recipient.referral_link).html_safe %>
Here is the screenshot how it looks like in email
I used GEM REDCARPET. Details here http://rubygems.org/gems/redcarpet.
And the following code works perfectly fine for me.
Thanks.