You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Dániel Dékány (Jira)" <ji...@apache.org> on 2023/07/02 07:07:00 UTC
[jira] [Assigned] (FREEMARKER-219) truncate_c is not working as expected
[ https://issues.apache.org/jira/browse/FREEMARKER-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dániel Dékány reassigned FREEMARKER-219:
----------------------------------------
Assignee: Dániel Dékány
> 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
>
> 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)