Skip to content

Commit

Permalink
Added newlines back to br in html template
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Apr 6, 2011
1 parent 0728fb7 commit 3a27932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/mail_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def render_html(vars) #:nodoc:
if item.is_a?(String)
output + item
else
output + (vars[item[:var]] || invalid_variable(item[:var])).to_s.gsub("\n",'<br/>')
output + (vars[item[:var]] || invalid_variable(item[:var])).to_s.gsub("\n","\n<br/>")
end
end

Expand Down

0 comments on commit 3a27932

Please sign in to comment.