Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-338

truncateNicely method which avoids truncating in the middle of a word

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.4
    • None
    • None

    Description

      as provided by jakarta string taglib. It would be good if this was part of commons as it doesn't make sense to use a taglib jar for non-web projects.

      The taglib javadoc says:
      "...It will search for the first space after the lower limit and truncate the string there. It will also append any string passed as a parameter to the end of the string. The hard limit can be specified to forcibily truncate a string (in the case of an extremely long word or such)..."
      http://jakarta.apache.org/taglibs/doc/string-doc/string-1.1.0/javadoc/org/apache/taglibs/string/util/StringW.html

      Attachments

        1. LANG-338.patch
          5 kB
          Dave Meikle
        2. LANG-338-cleaned.patch
          5 kB
          Ben Speakmon

        Activity

          People

            Unassigned Unassigned
            mhumph matt humphreys
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: