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

<p> and </p> problem

From: Alberto Otero García <alberto@cometatech.com>
Date: Fri, 29 Dec 2000 13:49:09 +0100
Message-ID: <3A4C8845.37E7C346@cometatech.com>
To: html-tidy@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT