Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-68037

Line breaks in email template for Message Boards notification are missing from UI editor and received email

    Details

      Description

      Description:
      Line breaks in email template for Message Boards notification are missing from UI editor and received email.

      email_message_added_body.tmpl reads as follows

      [$MESSAGE_BODY$]
      
      [$COMPANY_NAME$] Message Boards
      [$MESSAGE_URL$]
      [$MAILING_LIST_ADDRESS$]
      [$PORTAL_URL$]

      However, when it renders in the Message Boards email configuration editor, it displays as follows:

      [$MESSAGE_BODY$] [$COMPANY_NAME$] Message Boards [$MESSAGE_URL$] [$MAILING_LIST_ADDRESS$] [$PORTAL_URL$]

      When we replace this single-lined text with the one with line breaks in email_message_added_body.tmpl and save it, the email renders the line breaks properly.

      Steps to reproduce:
      Reproduced in Liferay 7.0 DE + Fix Pack 2

      1. Start up a clean 7.0 DE + Fix Pack 2 environment
      2. Sign in as test@liferay.com
      3. Click Menu Bar > Liferay DXP (site) > Content > Message Boards
      4. In the Message Boards panel, click the configuration dots, and select Configuration
      5. In the Configuration window, click Message Added Email

      Expected Result:
      Text in the "Body" should reflect email_message_added_body.tmpl:

      [$MESSAGE_BODY$]
      
      [$COMPANY_NAME$] Message Boards
      [$MESSAGE_URL$]
      [$MAILING_LIST_ADDRESS$]
      [$PORTAL_URL$]

      Actual Results:
      Text in "Body" is missing line breaks:

      [$MESSAGE_BODY$] [$COMPANY_NAME$] Message Boards [$MESSAGE_URL$] [$MAILING_LIST_ADDRESS$] [$PORTAL_URL$]

        Attachments

        1. expected-vs-actual.png
          expected-vs-actual.png
          889 kB
        2. fix.png
          fix.png
          50 kB
        3. reproduce.png
          reproduce.png
          47 kB
        4. screenshot-mashed-text.png
          screenshot-mashed-text.png
          359 kB

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 50 weeks ago

                Packages

                Version Package
                7.1.X
                Master