From owner-freebsd-doc Tue Aug 20 14:32: 3 2002 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 F221D37B400 for ; Tue, 20 Aug 2002 14:32:01 -0700 (PDT) Received: from mail3.panix.com (mail3.panix.com [166.84.1.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89D8A43E42 for ; Tue, 20 Aug 2002 14:32:01 -0700 (PDT) (envelope-from ziggy@panix.com) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mail3.panix.com (Postfix) with ESMTP id 5B065982D6; Tue, 20 Aug 2002 17:31:59 -0400 (EDT) Received: (from ziggy@localhost) by panix2.panix.com (8.11.3nb1/8.8.8/PanixN1.0) id g7KLVx513832; Tue, 20 Aug 2002 17:31:59 -0400 (EDT) Date: Tue, 20 Aug 2002 17:31:59 -0400 From: Adam Turoff To: Dylan Carlson Cc: freebsd-doc@FreeBSD.ORG Subject: Re: 'tidy' equiv for sgml? Message-ID: <20020820213159.GC28162@panix.com> References: <200208201414.55535.absinthe@pobox.com> <20020820205712.GA28162@panix.com> <200208201730.09221.absinthe@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208201730.09221.absinthe@pobox.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Aug 20, 2002 at 05:30:09PM -0400, Dylan Carlson wrote: > On Tuesday 20 August 2002 04:57pm, Adam Turoff wrote: > > Unfortunately, neither of these tools handle indenting or > > pretty-printing the output. Feeding an SGML document through [o]sx, > > is a good first step; feeding that output through a Perl/Java/Python/C > > program to add the appropriate amount of pretty-printing is a > > trivial task. > > Nod. > I'm just amazed there's not a tool for it right now, if it's indeed that > trivial. Actually, I spaced out when I wrote that. Once you convert an SGML document to XML with [o]sx, you can run the XML version through tidy; just make sure you use the -xml and -m flags. Check the docs for details. Z. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message