<p> and </p> problem

Hello, 

	I've been trying to convert with Tidy from a HTML file to an XML valid file,
and I think all works fine except when substitutes <p></p> for <p /><br /> <br
/> and not simply <p />.

	Example: for the HTML file

<html><body><p></p></body></html>


	The output is:

<?xml version="1.0"?>
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title></title>
</head>
<body>
<p /><br />
<br />
</body>
</html>

	And I'd like it to be:

<?xml version="1.0"?>
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title></title>
</head>
<body>
<p />
</body>
</html>

	My config file is:

add-xml-space: no
add-xml-decl: yes
doctype: omit
drop-empty-paras: no
new-empty-tags: p
new-inline-tags: p


	Can anyone help me? Thank you very much.

-- 
Alberto Otero García              e-mail: alberto@cometatech.com
Cometa Technologies, S.L.         URL: http://www.cometatech.com

Received on Friday, 29 December 2000 07:50:57 UTC