Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates receipt email to handle abstracts better
** Why are these changes being introduced: * Currently, users whose abstracts have line breaks / carriage returns are seeing them stripped out in the receipt email which they receive. ** Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/etd-380 ** How does this address that need: * This renders the abstract field using the simple_format() function, which replaces carriage return characters \n and \r\n with <br> and <p> tags. This improves their rendering in the email template. ** Document any side effects to this change: * The block of fields in the email template is now wrapped in a div tag rather than a p tag (to prevent nested p tags). * Additionally, the receipt email now visually separates the abstract field from the rest of the submitted fields. I think this is fine, but have asked the project team on Slack to confirm (we can follow up in QA testing).
- Loading branch information