Fix Textfield tag not allowing white space. See WW-5592. (#1489)

Co-authored-by: Greg Huber <ghuber@apache.org>
This commit is contained in:
gregh3269
2025-12-23 07:08:53 +00:00
committed by GitHub
parent cfc7e32964
commit 8e3bafd3cf
@@ -60,7 +60,7 @@ public class Attributes extends LinkedHashMap<String, String> {
public Attributes addIfExists(String attrName, Object paramValue, boolean encode) {
if (paramValue != null) {
String val = paramValue.toString();
if (StringUtils.isNotBlank(val))
if (StringUtils.isNotEmpty(val))
put(attrName, (encode ? StringUtils.defaultString(StringEscapeUtils.escapeHtml4(val)) : val));
}
return this;