chrisrueger commented on PR #111:
URL: https://github.com/apache/freemarker/pull/111#issuecomment-2254575697

   Ok I think I understand now. So you would prefer `?blank_to_null` over 
`?is_blank`, correct?
   
   The only thing which comes to my mind is how it would play with the existing 
[?trim](https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_trim)
 ?
   
   Should there also be a `?trim_to_null` and `?blank_to_null` ?
   
   - `?blank_to_null` returns null if the string is null, empty or just 
whitespace. Otherwise it returns the string as is. (un-trimmed)
   - `?trim_to_null` returns null if the string is null, empty or just 
whitespace. Otherwise it returns the string trimmed.
   
   What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@freemarker.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to