Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 78953 invoked from network); 13 Nov 2007 01:44:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2007 01:44:15 -0000 Received: (qmail 60165 invoked by uid 500); 13 Nov 2007 01:44:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 60085 invoked by uid 500); 13 Nov 2007 01:44:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 60076 invoked by uid 99); 13 Nov 2007 01:44:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 17:44:01 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Nov 2007 01:44:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C5C1C714209 for ; Mon, 12 Nov 2007 17:43:50 -0800 (PST) Message-ID: <3051047.1194918230806.JavaMail.jira@brutus> Date: Mon, 12 Nov 2007 17:43:50 -0800 (PST) From: "Ben Speakmon (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (LANG-338) truncateNicely method which avoids truncating in the middle of a word MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ben Speakmon updated LANG-338: ------------------------------ Attachment: LANG-338-cleaned.patch Concur on the value; +1 for inclusion. Attaching a cleaned-up patch with fixed misspellings and formatting because I'm pedantic like that. > truncateNicely method which avoids truncating in the middle of a word > --------------------------------------------------------------------- > > Key: LANG-338 > URL: https://issues.apache.org/jira/browse/LANG-338 > Project: Commons Lang > Issue Type: New Feature > Reporter: matt humphreys > Priority: Trivial > Fix For: 2.4 > > Attachments: LANG-338-cleaned.patch, LANG-338.patch > > > 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 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.