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

expanding 

From: Robert Skinner <robert@icopyright.com>
Date: Tue, 10 Oct 2000 10:50:12 -0700
To: html-tidy@w3.org
Message-ID: <39E356D4.DB8F07C6@icopyright.com>
Carriage return is a valid XML character, so the entity &#13; is a legal
XML entity (isn't it?)  So shouldn't tidy convert &#13; 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 GMT

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