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

indenting

From: niccolo capanni <nc@comp.rgu.ac.uk>
Date: Fri, 14 Oct 2005 09:22:33 +0100
To: <html-tidy@w3.org>
Message-ID: <E1EQKpn-0001cb-Gp@maggie.w3.org>
Hi,
 
I used tidy on some code to see what it does, was pretty sure the code was
ok.
 
The problem is that it removes all my indenting, I thought indenting was ok
with HTML and it makes it a lot clearer to read.
Should tidy be doing this?
 
regards,
 
Niccolo
 
 
Original code start
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
 
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    <meta name="author" content="Your Name">
    <title>html-basic-strict4.01.htm</title>
  </head>
 
  <body>
 
    <p>
      <a href="http://validator.w3.org/check?uri=referer"
<http://validator.w3.org/check?uri=referer> ><img
          src="http://www.w3.org/Icons/valid-html401"
          alt="Valid HTML 4.01 Strict" height="31" width="88"></a>
    </p>
 
  </body>
 
</html>

Original code stop
 
Tidy code start
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Windows (vers 12 April 2005), see www.w3.org">
<meta http-equiv="Content-type" content=
"text/html; charset=us-ascii">
<meta name="author" content="Your Name">
<title>html-basic-strict4.01.htm</title>
</head>
<body>
<p><a href="http://validator.w3.org/check?uri=referer"
<http://validator.w3.org/check?uri=referer> ><img src=
"http://www.w3.org/Icons/valid-html401" alt=
"Valid HTML 4.01 Strict" height="31" width="88"></a></p>
</body>
</html>
Tidy code stop
Received on Friday, 14 October 2005 08:22:47 GMT

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