Moved date/time formatters to utils class
This commit is contained in:
parent
05c1bd3f2a
commit
5ea5727a4a
15 changed files with 66 additions and 48 deletions
|
@ -40,6 +40,10 @@ public class Trim implements ValueRenderer {
|
|||
*/
|
||||
@Override
|
||||
public String render(Template template, String valueId, String differentiator) {
|
||||
return template.getValueOrAttribute(differentiator).trim();
|
||||
var value = template.getValueOrAttribute(differentiator);
|
||||
if (value == null || value.isEmpty()) {
|
||||
return value;
|
||||
}
|
||||
return value.trim();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue