pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Josh Kupershmidt <schmiddy@gmail.com>
Cc: pgsql-docs <pgsql-docs@postgresql.org>
Subject: Re: sgml cleanup: unescaped '>' characters
Date: Sat, 3 Sep 2011 19:09:27 -0400 (EDT)
Message-ID: <201109032309.p83N9Rv27485@momjian.us> (raw)
In-Reply-To: <1315088545.11695.25.camel@vanquo.pezone.net>

Peter Eisentraut wrote:
> 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.

I put it in to warn about release.sgml markup problems, so I properly
escaped all non-tag '>' and '<' characters.

I have removed the tool.  We can always re-add it if we find it is
needed.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +



view thread (13+ messages)

Message-ID: <201109032309.p83N9Rv27485@momjian.us>
Permalink:  ../201109032309.p83N9Rv27485@momjian.us/
Also on:    postgresql.org/message-id/201109032309.p83N9Rv27485@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us, peter_e@gmx.net, schmiddy@gmail.com
  Subject: Re: sgml cleanup: unescaped '>' characters
  In-Reply-To: <201109032309.p83N9Rv27485@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox