Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36D0111545 for ; Wed, 9 Jul 2014 19:47:06 +0000 (UTC) Received: (qmail 56632 invoked by uid 500); 9 Jul 2014 19:47:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 56509 invoked by uid 500); 9 Jul 2014 19:47:06 -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 56496 invoked by uid 99); 9 Jul 2014 19:47:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 19:47:05 +0000 Date: Wed, 9 Jul 2014 19:47:05 +0000 (UTC) From: "Benedikt Ritter (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LANG-1023) WordUtils.wrap: Customizable breakable characters (not just space/whitespace) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedikt Ritter updated LANG-1023: ---------------------------------- Fix Version/s: Patch Needed > WordUtils.wrap: Customizable breakable characters (not just space/whitespace) > ----------------------------------------------------------------------------- > > Key: LANG-1023 > URL: https://issues.apache.org/jira/browse/LANG-1023 > Project: Commons Lang > Issue Type: Wish > Components: lang.text.* > Affects Versions: 3.3.2 > Reporter: Andrew Pennebaker > Labels: word,wrap,word-wrap, > Fix For: Patch Needed > > > WordUtils.wrap is good at what it does, but I want slightly different semantics. I would like the option to set different characters for word breaking, not just space or whitespace, but punctuation marks. > The current implementation wraps like this: > flammable/inflammable [original string] > flammable/inflammable [wrap with large widths] > flammable/inflammable [wrap with wrapLongWords = false] > flammable/inflam [wrap with wrapLongWords = true] > mable > I would like to configure wrap to break "flammable/inflammable" on punctuation marks as well as whitespace, so that it wraps like this: > flammable/ [wrap with additionalBreakCharacters = "/+-"] > inflammable -- This message was sent by Atlassian JIRA (v6.2#6252)