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

Ace editor does not render new lines correctly

    Details

    • Fix Priority:
      3

      Description

      Steps to reproduce issue:

      1. Navigate to Content > Web Content
      2. In the portlet header, open the kebab menu
      3. Select "Templates"
      4. Click the plus button to add a new template
      5. In the ace editor, add a template that uses multiple lines:
        ${journalContent}
        
        ${journalContent}
        
      6. Save the template
      7. Click the template to view its contents

      Expected result: the two newline characters between each ${journalContent} is preserved in the ace editor
      Actual result: each new line is replaced with a space.

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.7
      Portal Master GIT ID: 45ee587ab0e36ad495ebfed0b5abda21b3e23d44

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 48 weeks, 6 days ago

                Packages

                Version Package
                7.0.X EE
                Master