W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2000

RE: Patch to add rudimentary custom entity capability

From: Dominic Jackson <dominic@wirestation.co.uk>
Date: Wed, 29 Nov 2000 15:15:26 -0000
To: "Gregor N. Purdy" <gregor@focusresearch.com>, <html-tidy@w3.org>
Message-ID: <MCEBLJLHOLLOBFCICPNKMEFECCAA.dominic@wirestation.co.uk>
I'm afraid I have no idea how this patch works (and would appreciate some
help on this), but think that it may be useful to me as I have come across a
similar problem with custom tags (re: "Problem with custom HTML TAGS using
HTML TIDY", a message I sent to the list previously).

The problem that I was having was that although I'd included my tags as
in-line or block-level (in the config.txt file) to get tidy to recognise
them, tidy would perform some additional processing above what I would have
wanted that in the block-level case was to add unwanted formatting <p> and
<br> tags to the document. - in the in-line case tidy would split <font>,
<b>, <u> etc.. tags around my custom tags.

What I'd ideally like is to be able to turn this additional formatting off
for the custom tags.

-----Original Message-----
From: html-tidy-request@w3.org [mailto:html-tidy-request@w3.org]On
Behalf Of Gregor N. Purdy
Sent: Tuesday, November 28, 2000 8:24 PM
To: html-tidy@w3.org
Subject: Patch to add rudimentary custom entity capability


I was using tidy to process an XML file that used some custom entities.
Since tidy wasn't aware of those entities, it refused to generate a
tidied file. I did a little rooting around and modified the code just
enough to produce the desired effect. There are some TODO comments in
the code to point out where it is suboptimal. Nonetheless, I'm posting
it here in case anyone else wants to make use of it or in case someone
wants to tidy (ahem) it up for inclusion in the next release.


-- Gregor N. Purdy
Received on Wednesday, 29 November 2000 10:15:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:49 UTC