W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2003

Re: Run window version Tidy once more

From: <fe.sola@infomed.sld.cu>
Date: Fri, 18 Jul 2003 18:27:01 -0400
Message-ID: <1058567221.3f187435582dc@webmail.sld.cu>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: Steve Wang <swang@carebridge.com>, html-tidy@w3.org

Hello again, I just tried to use tidy.exe with a config file and the results are not as 
expected.
the line I used is as suggested:
tidy -config optionfile.txt -o foo.out.html foo.html

the option file looks like this:
add-xml-decl=yes
bare=yes
clean=yes
drop-font-tags=yes
drop-propietary-attributes=yes
indent=auto
indent-spaces=2
wrap=72
markup=yes
output-xml=yes
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
smart-indent=no
output-xhtml=yes
char-encoding=latin1
join-styles=yes
word-2000=yes

the output file looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content=
"HTML Tidy for Windows (vers 1st February 2003), see www.w3.org"
name="generator">
<link href='cpr.css' rel='stylesheet' type='text/css'>
<title>foo</title>
</head>
<body bgcolor="blue">
<p class="joebob">foo<img alt="foo" src="foo.jpg">bar</p>
<p class="blah">This is another paragraph</p>
<table width="800" border="0">
<tr>
<td><img src=
"file:///C|/Documents%20and%20Settings/lizet/My%20Documents/My%20Pictures/dust%20storms%
20of%202001.jpg"
     width="350" height="350"></td>
<td><a href="foo.errors.txt">My link</a></td>
<td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td></tr></table>
<p class="blah">&nbsp;</p>
</body>
</html>
 as you see the img tag is not closed properly and it gets closed when I run tidy with 
the -asxml option instead of using a configuration file. Is the -asxml directive the 
equivalent to output-xml=yes in the option file? If not, what am I setting wrong in the 
option file?

tia, 
lizet

-------------------------------------------------
Este mensaje fue enviado usando el servicio de correo en web de Infomed
http://webmail.sld.cu
Received on Friday, 18 July 2003 18:30:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC