Mirlan created FREEMARKER-219:
---------------------------------

             Summary: 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


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)

Reply via email to