Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 29AC8632A0E for ; Mon, 5 Apr 2010 14:29:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 24287-10 for ; Mon, 5 Apr 2010 17:29:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.postgresql.org (Postfix) with SMTP id E7E096333EA for ; Mon, 5 Apr 2010 14:29:34 -0300 (ADT) Received: (qmail invoked by alias); 05 Apr 2010 17:29:33 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp040) with SMTP; 05 Apr 2010 19:29:33 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX18qWAUhwCcqBDmD2tvr/Kg9iP/IsM/VIfZuuWQjbH TPR/4blDOWjSYU Subject: Re: code example wrapping From: Peter Eisentraut To: Erik Rijkers Cc: Tom Lane , pgsql-docs@postgresql.org In-Reply-To: References: <2dadc3297b424c7540eb0fa70d418156.squirrel@webmail.xs4all.nl> <23091.1270484314@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Mon, 05 Apr 2010 20:29:31 +0300 Message-ID: <1270488571.18421.6.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59999999999999998 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.34 tagged_above=-10 required=5 tests=AWL=-0.600, BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201004/36 X-Sequence-Number: 5435 On mån, 2010-04-05 at 18:30 +0200, Erik Rijkers wrote: > On Mon, April 5, 2010 18:18, Tom Lane wrote: > > "Erik Rijkers" writes: > >> The manual has quite a few cases in the code-examples where, in the pdf version, there isn't > >> enough width to show the whole line. Unfortunately, the rest of the line is then simply cut > >> off, > >> making the example 'invalid' (while reading, but also for copy-paste). > > > >> I would like to reformat (only) those cases so that the text is completely readable on the pdf > >> page. > > > Exactly what width do you intend to wrap to, and how did you arrive at > > the number? > > > > I want to manually reformat, rather than automatically wrap to some fixed width. > > The width would be determined by readability of the .pdf versions (-A4, -US). Maybe I should > check other formats at the same time? > > It looks like less than 60 or 80 would already solve most of the problem-cases. Obviously, the > actual split should be determined by the syntax of the example. Sure, makes sense. Lines much longer than 60-80 characters are probably not too readable in any format.