Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 64DF4B5DE27 for ; Sat, 3 Sep 2011 19:22:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 37226-05 for ; Sat, 3 Sep 2011 22:22:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mail.postgresql.org (Postfix) with SMTP id 77740B5D803 for ; Sat, 3 Sep 2011 19:22:27 -0300 (ADT) Received: (qmail invoked by alias); 03 Sep 2011 22:22:25 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.102]) [88.115.218.165] by mail.gmx.net (mp065) with SMTP; 04 Sep 2011 00:22:25 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX184mZ5OtJ04Xau18Xh0m1RA9TNSjALILSlyH5k8zK RTHrLRDKdQ6Uxb Subject: Re: sgml cleanup: unescaped '>' characters From: Peter Eisentraut To: Bruce Momjian Cc: Josh Kupershmidt , pgsql-docs Date: Sun, 04 Sep 2011 01:22:24 +0300 In-Reply-To: <201109032047.p83KlnK01964@momjian.us> References: <201109032047.p83KlnK01964@momjian.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.2- Content-Transfer-Encoding: 8bit Message-ID: <1315088545.11695.25.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.403 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/10 X-Sequence-Number: 6931 On lör, 2011-09-03 at 16:47 -0400, Bruce Momjian wrote: > Peter Eisentraut wrote: > > On tor, 2011-09-01 at 17:31 -0400, Bruce Momjian wrote: > > > Peter Eisentraut wrote: > > > > On tor, 2011-09-01 at 14:17 -0400, Bruce Momjian wrote: > > > > > > That still leaves open why we bother about escaping <. > > > > > > > > > > The problem is that I often add SGML that has: > > > > > > > > > > if (1 < 0) ... > > > > > > > > > > I need something to warn me about those, especially in the release > > > > > notes. > > > > > > > > Why do you need to be warned about that? > > > > > > If I have: > > > > > > if (1 < fred) > > > > > > it will think "fred" is a SGML tag, no? > > > > No, a < followed by a space is not a tag, it's character data. If it > > thought it were a tag, it would complain. > > Sometimes it is '<' (in single quotes), which I thought would be a > problem. The bottom line is, the SGML parser can figure that out itself, and if it has a problem, it will complain. We don't need to second guess it with regular expressions that are handcrafted out of thin air. I was hoping you would remember whether you initially put this in because of some tool problem. But if we are not finding any supporting evidence, I would suggest that we just scrap this thing entirely.