Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 500CA632B83 for ; Mon, 5 Apr 2010 13:30:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 47060-05-4 for ; Mon, 5 Apr 2010 16:30:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mail.postgresql.org (Postfix) with ESMTP id 0F702634E05 for ; Mon, 5 Apr 2010 13:30:27 -0300 (ADT) Received: from webmail.xs4all.nl (dovemail14.xs4all.nl [194.109.26.16]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id o35GUP7l027155; Mon, 5 Apr 2010 18:30:25 +0200 (CEST) (envelope-from er@xs4all.nl) Received: from 156.83.0.57 (SquirrelMail authenticated user er) by webmail.xs4all.nl with HTTP; Mon, 5 Apr 2010 18:30:26 +0200 Message-ID: In-Reply-To: <23091.1270484314@sss.pgh.pa.us> References: <2dadc3297b424c7540eb0fa70d418156.squirrel@webmail.xs4all.nl> <23091.1270484314@sss.pgh.pa.us> Date: Mon, 5 Apr 2010 18:30:26 +0200 Subject: Re: code example wrapping From: "Erik Rijkers" To: "Tom Lane" Cc: pgsql-docs@postgresql.org User-Agent: SquirrelMail/1.4.18 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201004/34 X-Sequence-Number: 5433 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. Erik Rijkers