Problem with custom HTML TAGS using HTML TIDY

Would be grateful if someone could help me with the following problem. Have
searched the mail archives, but with no real joy. Apologies if this has been
handled before ...

I'm trying to use some custom tags using the following options in config.txt
(as well as trying different combinations of custom tag types):

new-blocklevel-tags:
new-empty-tags:
new-inline-tags:
new-pre-tags: heading, para, text, flowtext, subheading, main_content,
select_element, skeleton, nav, start_flowtext, select_element, break

When converting the following HTML to XML, I get a problem where the custom
tag is causing formatting tags (font, b, etc..) to be split around our new
tags. Is there a way around this ?

EXAMPLE INPUT HTML:-

<html>
<head>
<title></title>
</head>

<body>
<p>
<b>
<font face="Arial, Helvetica, sans-serif" size="-1">
<heading style="background-colour:#8000FF">
<b>Got an event this summer that needs a boost</b>
</heading>
</font>
</b>
</p>
</body>

</html>

EXAMPLE OUTPUT HTML IN OUR TIDY.LOG:-

<?xml version="1.0"?>

<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org" />

    <title></title>
  </head>

  <body>
    <p><b><font face="Arial, Helvetica, sans-serif"
size="-1"></font></b></p>
<heading style="background-colour:#8000FF">
<b><font face="Arial, Helvetica, sans-serif" size="-1"><b>Got an event this
summer that needs a boost</b>
</font></b>
</heading>
    <br />
    <br />
  </body>
</html>

Thanks,
Dominic Jackson

Received on Friday, 3 November 2000 16:37:49 UTC