Date: Wed, 16 Jan 2002 21:39:22 -0800 From: Murray Stokely <murray@FreeBSD.org> To: Jim Mock <mij@soupnazi.org> Cc: Ted Mittelstaedt <tedm@toybox.placo.com>, 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> In-Reply-To: <20020116091533.GA66873@helios.dub.net> References: <20020116075545.GB65740@helios.dub.net> <000001c19e6d$20c9bb40$1401a8c0@tedm.placo.com> <20020116091533.GA66873@helios.dub.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 "<body class=3D'FreeBSDMall-bodystyle1'>"=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020117053922.GP6073>