Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1282

StringUtils#normalizeSpace normalizeSpace should not replace non-breaking spaces with normal whitespace

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5
    • None
    • None
    • None

    Description

      As of 3.4 StringUtils#normalizeSpace does not normalize non-breaking whitespace anymore. Therefore it shouldn't replace a non-breaking whitespace white breaking whitespace, but both assertions succeed:

      assertEquals("a b", StringUtils.normalizeSpace("a\u00A0b"));
      assertEquals("a  b", StringUtils.normalizeSpace("a\u00A0 b"));
      

      source: https://github.com/apache/commons-lang/pull/184

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            pascalschumacher Pascal Schumacher

            Dates

              Created:
              Updated:

              Slack

                Issue deployment