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

Templates lose formatting when they contain tags with no separate closing tag

    Details

      Description

      Steps to Reproduce:
      1. Start a new Liferay DXP 7.1 server
      2. Add a new Application Display Template for "Asset Publisher Template" (the type does not matter)
      3. Paste in the following content:

      <#assign liferay_portlet = taglibLiferayHash["/WEB-INF/tld/liferay-portlet-ext.tld"] />
      <div class="container-fluid">
          <div class="row-fluid">
              <div class="span12">
                  ${hello}
              </div>
              <div class="tab-content">
                  ${world}
              </div>
          </div>
      </div>
      <div class="clearfix"></div>
      

      4. Click Save and Continue

      Expected Results: The template script is formatted as was pasted in.
      Actual Results: The template script has lost indentations and line breaks.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  7.1.10 DXP FP4
                  7.1.10.1 SP1
                  7.1.2 CE GA3
                  7.1.X
                  Master