From owner-freebsd-doc Wed Jan 16 21:39:28 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mao.stokely.org (mao.stokely.org [65.84.64.228]) by hub.freebsd.org (Postfix) with ESMTP id DEB5D37B402; Wed, 16 Jan 2002 21:39:22 -0800 (PST) Received: by mao.stokely.org (Postfix, from userid 2074) id 763C14B65D; Wed, 16 Jan 2002 21:39:22 -0800 (PST) Date: Wed, 16 Jan 2002 21:39:22 -0800 From: Murray Stokely To: Jim Mock Cc: Ted Mittelstaedt , ru@FreeBSD.org, freebsd-doc@FreeBSD.org, freebsd-gnats-submit@FreeBSD.org Subject: Re: docs/33913: GNATS webinterface isn't wrapping lines Message-ID: <20020117053922.GP6073@windriver.com> References: <20020116075545.GB65740@helios.dub.net> <000001c19e6d$20c9bb40$1401a8c0@tedm.placo.com> <20020116091533.GA66873@helios.dub.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rFUhhEVnhEf/dYhU" Content-Disposition: inline In-Reply-To: <20020116091533.GA66873@helios.dub.net> User-Agent: Mutt/1.3.25i X-GPG-Key-ID: 1024D/0E451F7D X-GPG-Key-Fingerprint: E2CA 411D DD44 53FD BB4B 3CB5 B4D7 10A2 0E45 1F7D 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 --rFUhhEVnhEf/dYhU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 16, 2002 at 01:15:33AM -0800, Jim Mock wrote: > > The wrap attribute was NEVER valid in any HTML spec. It is and > > remains a quick hack to get out of massaging user input. > ... >=20 > What's wrong with it is that when the web site is built, the code is > validated, and if non-existant stuff is found, the build fails. If we > add the wrap attribute, the build will fail because it isn't valid. I ran into this problem a lot over the last several weeks as I was frantically trying to put up http://www.FreeBSDMall.com. Basically we're using the stock FreeBSD Web infrastructure with the following small additions to web/share/mk/web.site.mk : * Addition of a 'spellcheck' target, so that we can check the formatted output for errors before committing changes. * Addition of a 'POSTPROCESS' target, so that invalid HTML can be specified with something like=20 ""=20 A variable is set in the individual Makefiles to specify what replacement should be done. In this case, the class attribute is replaced with the invalid but highly implemented margin attributes. web.site.mk then contains the Perl or sed command line to run the regexp specified in this variable over the generated HTML file. * Various other installation tweaks for our local. The problem gets more complex for us, because we're using an application server that embeds new invalid tags to the HTML. We can use CDATA sections for some of this stuff, but that has the side effect of changing < into < and other problems that will certainly confuse the application server. If anyone is interested, I can post the diffs for the above functionality, although it is really quite trivial. I would be very interested in hearing how other people deal with these problems. In particular, I know the POSTPROCESS stuff is a big ugly hack, so I'd like to find a more SGML-friendly way to solve this problem. - Murray --rFUhhEVnhEf/dYhU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQE8RmOJtNcQog5FH30RAvwpAKCg9pRD4TwQRYMiQmN/3OSpD1/fIgCgo+zG jaQglJb7x8IGiYGth5K69Dw= =94ya -----END PGP SIGNATURE----- --rFUhhEVnhEf/dYhU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message