Skip to content

Normalize mixed Gmail paragraph breaks - #143

Merged
parterburn merged 3 commits into
mainfrom
paul-cursor/normalize-email-paragraphs-2b44
Aug 2, 2026
Merged

Normalize mixed Gmail paragraph breaks#143
parterburn merged 3 commits into
mainfrom
paul-cursor/normalize-email-paragraphs-2b44

Conversation

@parterburn

@parterburn parterburn commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • normalize Gmail edge <br> separators into standalone paragraph breaks
  • preserve one consistent blank line across mixed Gmail HTML representations
  • cover trailing, leading, explicit, empty-block, NBSP, duplicate, repeated, nested, and inline separator forms
  • verify the full paid-user inbound path stores normalized HTML
  • verify the entry page renders the exact div/br sequence and four text lines

Verification

  • bundle exec rspec spec/models/email_processor_spec.rb spec/features/entries_spec.rb — 39 examples, 0 failures
  • bundle exec rspec — 236 examples, 0 failures, 1 expected pending

consistent_email_paragraph_spacing.mp4

Open in Web Open in Cursor 

cursoragent and others added 3 commits August 2, 2026 10:30
Co-authored-by: Paul Arterburn <parterburn@users.noreply.github.com>
Co-authored-by: Paul Arterburn <parterburn@users.noreply.github.com>
Co-authored-by: Paul Arterburn <parterburn@users.noreply.github.com>
@parterburn
parterburn marked this pull request as ready for review August 2, 2026 10:51
@parterburn
parterburn merged commit 3bc6bf4 into main Aug 2, 2026
2 checks passed
@parterburn
parterburn deleted the paul-cursor/normalize-email-paragraphs-2b44 branch August 2, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants