From owner-freebsd-doc@FreeBSD.ORG Thu Sep 4 05:34:47 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B076516A4C0; Thu, 4 Sep 2003 05:34:47 -0700 (PDT) Received: from shaft.techsupport.co.uk (shaft.techsupport.co.uk [212.250.77.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33A0843FCB; Thu, 4 Sep 2003 05:34:45 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from pc3-cdif2-5-cust222.cdif.cable.ntl.com ([81.101.152.222] helo=shrike.submonkey.net ident=mailnull) by shaft.techsupport.co.uk with esmtp (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.20) id 19utJz-0003xJ-FV; Thu, 04 Sep 2003 13:34:43 +0100 Received: from setantae by shrike.submonkey.net with local (Exim 4.22) id 19utJx-0006yh-F4; Thu, 04 Sep 2003 13:34:41 +0100 From: Ceri Davies To: "Simon L. Nielsen" Message-ID: <20030904123441.GD25063@submonkey.net> Mail-Followup-To: Ceri Davies , "Simon L. Nielsen" , freebsd-doc@freebsd.org References: <20030903230035.GB386@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3XA6nns4nE4KvaS/" Content-Disposition: inline In-Reply-To: <20030903230035.GB386@FreeBSD.org> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.4i Sender: Ceri Davies cc: freebsd-doc@freebsd.org Subject: Re: Tidy options X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 04 Sep 2003 12:34:47 -0000 X-Original-Date: Thu, 4 Sep 2003 13:34:41 +0100 X-List-Received-Date: Thu, 04 Sep 2003 12:34:47 -0000 --3XA6nns4nE4KvaS/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 04, 2003 at 01:00:37AM +0200, Simon L. Nielsen wrote: > Hello >=20 > In the DocBook documentation with HTML output when using a package > reference preceded by a character (with no space in between) there are > often inserted spaces which looks odd. E.g from > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/video-playback.= html >=20 > ... codec with MPEG3 audio encoding ( audio/lame is required): >=20 > The HTML that gives this problem is: >=20 > the MPEG4 codec with MPEG3 audio encoding ( href=3D"http://www.FreeBSD.org/cgi/url.cgi?ports/audio/lame/p= kg-descr"> > audio/lame is >=20 > The problem is that Tidy is a bit too agressive when trying to make the > HTML look nice, so it inserts newline where it really shouldn't, since > it tries to keep the lines at max 68 characters (the Tidy default > default). >=20 > To fix this I propose to remove the -i flag (which indents the HTML) > from the default Tidy arguments and add '-wrap 90'. This makes the HTML > more "ugly", but I don't really think this matters, since it's still > correct and of course the browsers doesn't care. If anybody for some > reason still like to generate more readable HTML, they can just use the > TIDYFLAG make variable to override the defaults. Doesn't this simply decrease the chance of this happening, as opposed to actually fixing the issue? Surely the above situation can still occur on a 90 column boundary. > I should also mention that these options make book.html (the complete > handbook in one HTML file) go from 3 986 799 to 3 002 354 bytes. Now that's a reason to go for it, so far as I'm concerned. > Any objection to changing this? Not really, but it doesn't sound like a real fix, unless I'm misunderstandi= ng something. Ceri --=20 User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR? Iniaes: Sure, I can accept all forms of payment. -- www.chatterboxchallenge.com --3XA6nns4nE4KvaS/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/VzFhocfcwTS3JF8RArNuAJ9k2QmtPrTUIsgi5QGbt56bHneAYgCeNMtL tQpbRwsVWi1s7ia3UlZHRls= =H8l+ -----END PGP SIGNATURE----- --3XA6nns4nE4KvaS/--