W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2007

Tell tidy to only do indenting

From: David Koch <david.koch@xrce.xerox.com>
Date: Fri, 05 Jan 2007 10:06:32 +0100
Message-ID: <459E1518.3030804@xrce.xerox.com>
To: html-tidy@w3.org

Hello,

I used Tidy to indent some hideously hard to read (auto-generated ?) HTML. 
However, the rendered layout is not the same afterwards. Tidy reports no 
errors, only warnings and some tags are added/removed.

I only need to make minor changes in the HTML document and I absolutely 
want to retain the original rendered layout. I set indent: auto to make
sure it had nothing to do with line breaks, as suggested on the Tidy page.

Is there an option to tell Tidy NOT to modify the HTML and just do 
indenting? Since there are no errors in the HTML you would think that
this does not interfere with the way tidy operates. I include the config
file.

Thanks,


David

My .cfg file straight from:
http://www.w3.org/People/Raggett/tidy/

// sample config file for HTML tidy
indent: auto
indent-spaces: 2
wrap: 72
markup: yes
output-xml: no
input-xml: no
show-warnings: yes
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
break-before-br: no
uppercase-tags: no
uppercase-attributes: no
char-encoding: latin1
new-inline-tags: cfif, cfelse, math, mroot, 
  mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
  munder, mover, mmultiscripts, msup, msub, mtext,
  mprescripts, mtable, mtr, mtd, mth
new-blocklevel-tags: cfoutput, cfquery
new-empty-tags: cfelse
Received on Friday, 5 January 2007 13:02:11 GMT

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