[
https://issues.apache.org/jira/browse/FREEMARKER-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17800195#comment-17800195
]
Simon commented on FREEMARKER-219:
----------------------------------
Thank you!
> truncate_c is not working as expected
> -------------------------------------
>
> Key: FREEMARKER-219
> URL: https://issues.apache.org/jira/browse/FREEMARKER-219
> Project: Apache Freemarker
> Issue Type: Bug
> Components: engine
> Affects Versions: 2.3.31
> Reporter: Mirlan
> Assignee: Dániel Dékány
> Priority: Major
> Fix For: 2.3.33
>
>
> So the String I would like to truncate is {{1234 SOMESTREETSSS AVE NE 123}}
> So the code is as below
> <#assign myField = "1234 SOMESTREETSSS AVE NE 123">
> ${myField?truncate_c(25, '')}
> {{}}
> Expected output is {{1234 SOMESTREETSSS AVE NE}}
> Actual output is {{1234 SOMESTREETSSS AVE N}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)