expanding 

Carriage return is a valid XML character, so the entity 
 is a legal
XML entity (isn't it?)  So shouldn't tidy convert 
 to a carriage
return?

% cat /tmp/tidy.html
<html>
<title>Carriage Return</title>
<body>
<p>Shouldn't we get a carriage return right &#13; here?</p>
<p>This becomes &#9; tab.</p>
<p>And this becomes &#10; newline.</p>
</body>
</html>
% tidy  --output-xml true  /tmp/tidy.html

Tidy (vers 4th August 2000) Parsing "/tmp/tidy.html"

/tmp/tidy.html: Document content looks like HTML 2.0
no warnings or errors were found

<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<title>Carriage Return</title>
</head>
<body>
<p>Shouldn't we get a carriage return right &#13; here?</p>

<p>This becomes          tab.</p>

<p>And this becomes 
 newline.</p>
</body>
</html>


-- 
+-------------------------+---------------------------+
| Robert Skinner          | Phone: 425-430-4555 x667  | 
| robert@icopyright.com   | FAX:   425-430-8878       |
+-------------------------+---------------------------+
| http://www.icopyright.com                           |
+-----------------------------------------------------+

    "You want to have consistent and uniform muscle
    development across all of your muscles? It can't be
    done. It's just a fact of life. You just have to accept
    inconsistent muscle development as an unalterable
    condition of weight training."

		- Response to Arthur Jones, who solved the
		  "unsolvable" problem by inventing Nautilus.

Received on Tuesday, 10 October 2000 13:50:18 UTC