Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-219

truncate_c is not working as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.31
    • 2.3.33
    • engine
    • None

    Description

      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

      Attachments

        Activity

          People

            ddekany Dániel Dékány
            mirlan Mirlan
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: