Problem/Motivation

The previous submission tab shows a list of previously sent email replies. The table displays the message, but the line breaks are not formatted, thus causing the message to show in one line.

Steps to reproduce

1. Reply to a submission and type multiple lines in the message.
2. Check the previous submission to see the sent reply.

The reply message should display line-breaks as they were in the message.

Proposed resolution

Add nl2br to the webform_email_reply_previous function.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jplana created an issue. See original summary.

jplana’s picture

The attached patch should fix the display issues with line breaks.

jplana’s picture

Issue summary: View changes
joelpittet’s picture

Status: Active » Needs review

This looks good, just setting status to NR. I wish this had a 1.x branch to attach it to.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

YOLO?

arunkumark’s picture

There is no active development for Drupal 7. I am moving this fix for the 7.x-1.x version. Kindly check the same issue is happening in 2.x version.

  • arunkumark committed 9874a029 on 7.x-1.x
    Issue #3199580: Show line breaks in the previous emails table
    
arunkumark’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.