Repository navigation
v1.5.2 - line breaks preserved
Fixes single line breaks disappearing from sent email.
"Hi," and the sentence after it arrived on one line, as did "Best," and the name below it. Paragraphs separated correctly; line breaks within a paragraph did not survive at all.
The cause was a guard added alongside the earlier paragraph fix: it skipped wpautop whenever any block-level tag was present. A newline inside a <p> - exactly what the editor stores for Shift+Enter, and what pasted text produces - was then left for HTML to collapse.
That guard was protecting against nothing. wpautop inserts neither <p> nor <br> into a table, leaves existing paragraphs alone, and is idempotent. It now runs on every fragment; only a complete HTML document is skipped.
Existing campaigns are fixed without re-saving, since this applies when the message is rendered.
No schema change.
Tested up to: 6.8
Installing
Download techzapp-crm.zip below. Do not use the auto-generated source archives - they omit vendor/ and the plugin will not load.