Return-Path: Delivered-To: apmail-velocity-dev-archive@www.apache.org Received: (qmail 89634 invoked from network); 11 Feb 2009 05:53:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2009 05:53:21 -0000 Received: (qmail 48113 invoked by uid 500); 11 Feb 2009 05:53:20 -0000 Delivered-To: apmail-velocity-dev-archive@velocity.apache.org Received: (qmail 48090 invoked by uid 500); 11 Feb 2009 05:53:20 -0000 Mailing-List: contact dev-help@velocity.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Velocity Developers List" Delivered-To: mailing list dev@velocity.apache.org Received: (qmail 48079 invoked by uid 500); 11 Feb 2009 05:53:20 -0000 Delivered-To: apmail-jakarta-velocity-dev@jakarta.apache.org Received: (qmail 48076 invoked by uid 99); 11 Feb 2009 05:53:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 21:53:20 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 05:53:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB625234C48B for ; Tue, 10 Feb 2009 21:52:59 -0800 (PST) Message-ID: <1322803646.1234331579686.JavaMail.jira@brutus> Date: Tue, 10 Feb 2009 21:52:59 -0800 (PST) From: "Nathan Bubna (JIRA)" To: velocity-dev@jakarta.apache.org Subject: [jira] Commented: (VELTOOLS-113) new DisplayTool features In-Reply-To: <1659655968.1234298519818.JavaMail.jira@brutus> 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/VELTOOLS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12672519#action_12672519 ] Nathan Bubna commented on VELTOOLS-113: --------------------------------------- Yes, a single patch is fine. Unit tests and javadoc would be fantastic. The plural method doesn't sound all that useful for me, but if you've got tests and javadoc with it, then i don't mind adding it. > new DisplayTool features > ------------------------ > > Key: VELTOOLS-113 > URL: https://issues.apache.org/jira/browse/VELTOOLS-113 > Project: Velocity Tools > Issue Type: New Feature > Components: GenericTools > Reporter: Nathan Bubna > Priority: Minor > > More ideas from the dev list: > ---------------------------------------------------------------------------------------------- > On Sat, Feb 7, 2009 at 3:41 PM, wrote: > Hello, > I wanted to share with you a few ideas I have about new simple > improvements for DisplayTools. I should be able to make patches for > them if you are interested. > #snip > 2. Add new "property" parameter to > list(Object list, String delim, String finaldelim, String property) > method that will format an array or collection of objects on selected > property (similar to SortTools). > 3. Add new method: > stripTags(Object obj, String... allowedTags) > that will strip all (html) tags from the text except those listed in > allowedTags (allowed tags are passed like this: "br","img","p"). > 4. Add new method: > br(Object obj) > that will replace \n with "
\n" > 5. Add new "preserveWords" parameter to: > truncate(Object truncateMe, int maxLength, String suffix, boolean preserveWords) > that will truncate a string to a last complete word within maxLength > instead of exact character. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org For additional commands, e-mail: dev-help@velocity.apache.org