Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Line wrapping Date: Fri, 20 Jan 2012 17:17:06 -0500 Organization: A noiseless patient Spider Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 20 Jan 2012 22:08:43 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="qwFw1g9RsQ6TkML5yezG9A"; logging-data="19309"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SPxnOe5e4m9NkdYg+c/n0zY8Oun2gcRk=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 In-Reply-To: Cancel-Lock: sha1:s8mipt1WX/CIDeaHXIQj2hU8YRg= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11536 On 01/20/2012 05:47 AM, Mark wrote: > On Thu, 19 Jan 2012 14:52:58 +0000, Mark > wrote: > >> On Thu, 19 Jan 2012 06:26:37 -0500, Jeff Higgins >> wrote: >> >>> On 01/19/2012 04:00 AM, Mark wrote: >>>> I saw that comment but, as I could not find documentation for that >>>> parameter, I assumed that the poster was wrong. I will try it out but >>>> prefer to rely on documented behaviour ;-) >>> >>> >>> >>> Here's a working example. However this does not address your request for >>> a configurable pretty printer. >>> > > Is there any known bugs that might affect this (Method 2)? It is > throwing an Exception/Error that the documentation does not mention. > [java.lang.AbstractMethodError] Just out of curiosity, does the author's Method#3 work for you? Upthread you say: > So, what effect does »format.setLineSeparator(lineSep)« have, > > then? On the test data, none that I can see. i.e. it produces lines longer than that specified in setLineWidth() It starts to sound as if you have an incompatible implementation on your classpath.