[ 
https://issues.apache.org/jira/browse/LANG-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121223#comment-18121223
 ] 

Gleb Golovko commented on LANG-1282:
------------------------------------

A pull request has been opened for this issue:
https://github.com/apache/commons-lang/pull/1809

The change preserves non-breaking spaces (U+00A0) in 
{{StringUtils.normalizeSpace()}} and adds regression tests.

> StringUtils#normalizeSpace normalizeSpace should not replace non-breaking 
> spaces with normal whitespace
> -------------------------------------------------------------------------------------------------------
>
>                 Key: LANG-1282
>                 URL: https://issues.apache.org/jira/browse/LANG-1282
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Pascal Schumacher
>            Priority: Major
>
> 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:
> {code}
> assertEquals("a b", StringUtils.normalizeSpace("a\u00A0b"));
> assertEquals("a  b", StringUtils.normalizeSpace("a\u00A0 b"));
> {code}
> source: https://github.com/apache/commons-lang/pull/184



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to