

4:44 pm

August 6, 2015

The post content is stored normally, and when rendered to the page, it contains no extraneous BR tags. However, every closing paragraph tag in the outgoing emails has a BR tag immediately following it. We use Mandrill to send all wp_mail email, but I’m pretty sure it’s not doing it, as we’ve disabled the setting to add line breaks, and other emails aren’t having this issue, only emails generated by the Subscribe2 HTML plugin, and it creates far too much whitespace between paragraphs.
5:03 pm

December 13, 2012

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **
3:19 am

December 13, 2012

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **
5:40 pm

August 6, 2015

The front-end form submission is storing HTML as part of the post_content. I’m not sure at what point or which plugin is actually adding the extraneous BR tags after paragraph close tags (it’s not happening when the_content is rendered to a page), but since we’re using WPMandrill (the “content” checkbox is not checked in WPMandrill settings, btw), I simply used the mandrill_payload filter to do a str_replace on $message[‘html’], replacing closing Ps followed by self-closing BRs with only closing Ps.
I know that’s a fairly narrow set of circumstances, but if anybody else runs into that problem ( front-end post submission -> extra break tags in html emails -> sending via WPMandrill ), that’s one way to clear it up.
2:26 am

December 13, 2012

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **
Most Users Ever Online: 964
Currently Online:
34 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 35
Members: 20994
Moderators: 1
Admins: 8
Forum Stats:
Groups: 4
Forums: 28
Topics: 1978
Posts: 8541
Newest Members:
TareqModerators: Dawa Liu
Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAshish Ravi