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

StringUtil.splitLines should not strip indentation of first line

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.0.X, Master
    • Fix Version/s: None
    • Component/s: Util
    • Labels:
    • Fix Priority:
      2

      Description

       

      StringUtil.splitLines(s);
      

      Where s =

          hello
          world

       

      Actual result:

      {"hello", "    world"}

       

      Expected result

      {"    hello", "    world"}

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            hugo.huijser Hugo Huijser (Inactive)
            Participants of an Issue:
            Recent user:
            Lu Liu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              3 years, 40 weeks, 1 day ago

                Packages

                Version Package