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

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

    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

            People

              Unassigned Unassigned
              pascalschumacher Pascal Schumacher
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: