You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/11/03 21:26:58 UTC
[jira] [Updated] (LANG-1282) StringUtils#normalizeSpace
normalizeSpace should not replace non-breaking spaces with normal
whitespace
[ https://issues.apache.org/jira/browse/LANG-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher updated LANG-1282:
------------------------------------
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:
{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
was:
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}
> 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
>
> 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
(v6.3.4#6332)