Rendering of e-mail template adds unnecessary whitespace

Yeah I see the problem.

result.gsub!(/\[email-indent\]/, "<div style='margin-left: 15px'>")
result.gsub!(/\[\/email-indent\]/, "</div>")

That will create some mangled html.

3 Likes