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

Asset Publisher creates extra spaces in stripped (HTML) content samples.

    Details

      Description

      May effect 7.x as well. Need to test.

      Possible Fix:

      +++ b/portal-impl/src/com/liferay/portal/util/HtmlImpl.java
      @@ -545,7 +545,7 @@ public class HtmlImpl implements Html {
      
                      while (y != -1) {
                              sb.append(text.substring(x, y));
      -                       sb.append(StringPool.SPACE);
      +                       // sb.append(StringPool.SPACE);
      
                              // Look for text enclosed by <abc></abc>
      

      Bug introduced in: LEP-4065 Improve Lucene indexing speed exponentially
      59dca54ea3ce5c43dbc4de4f11247a83f6c18d5e

      Replication Steps:

      1. Add Asset Publisher to a page
      2. Add a new Basic Web Content via Asset Publisher's [ + ] button
      3. In source view, enter the content: <p>theres<strong>houldbenospacesinthi</strong>sstring</p>
      4. Click [ Publish ]

      Expected Results:
      thereshouldbenospacesinthisstring
      (no bolding is expected)

      Actual Results:
      theres houldbenospacesinthi sstring
      (no bolding is expected)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              felix.zhang Felix Zhang
              Reporter:
              byran.zaugg Byran Zaugg (Inactive)
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 5 weeks, 2 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master