Subscription emails missing paragraphs when the work/series has a multi-paragraph summary

Description

Steps to reproduce

  1. subscribe to a creator

  2. create a work on that creator's account with paragraph breaks in the summary

What happens

Subscription email will squish all that pretty formatting into one square chunk. For example, let’s say you have a summary like this:

In the email, it will look like this:

My first paragraph. Another sentence.My second paragraph.

Note especially the lack of space after the period where the paragraph tag was eaten.

To see comparison, http://archiveofourown.org/works/9577475 versus attached image.

Notes

This is because we’re stripping tags in the HTML email. We should really allow <p> and <br> tags, though.

The plain text version of the email has paragraph breaks.

Activity

Show:
Sarken
May 13, 2020, 2:42 AM

Pull request is ready to merge and can be reopened when I have fewer: https://github.com/otwcode/otwarchive/pull/3775

Ehryn (Danielle Strong)
June 15, 2020, 4:31 AM

I tested this, subscribed to testy then posted this work: https://test.archiveofourown.org/works/1071608

The notification email in my inbox displayed correctly:

C. Ryan Smith
June 16, 2020, 9:29 AM

Email properly formatted text using the <p> tags. Screenshot below.

Assignee

Sarken

Reporter

CJ Record

Roadmap

Subscriptions

Priority

Medium

Affects versions

Fix versions

Components

BackEnd

Difficulty

Medium

Milestone

Internal 0.9
Configure