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

Ampersand bug report

From: Richard Bullington <rbulling@obscure.org>
Date: Mon, 5 Jul 1999 14:26:15 -0400 (EDT)
To: html-tidy@w3.org
Message-ID: <Pine.LNX.3.96.990705141353.31614H-100000@tiamat.obscure.org>

Ampersands are being replaced by "&mp;" instead of "&amp'" in the version
I just installed...

Script started on Mon Jul  5 14:13:09 1999

[rbulling@tiamat] tidy --help
tidy: file1 file2 ...
Utility to clean up & pretty print html files
see http://www.w3.org/People/Raggett/tidy/
options for tidy released on 26th June 1999
  -config <file>  set options from config file
  -indent or -i   indent element content
  -omit   or -o   omit optional endtags
  -wrap 72        wrap text at column 72 (default is 68)
  -upper  or -u   force tags to upper case (default is lower)
  -clean  or -c   replace font, nobr & center tags by CSS
  -raw            leave chars > 128 unchanged upon output
  -ascii          use ASCII for output, Latin-1 for input
  -latin1         use Latin-1 for both input and output
  -iso2022        use ISO2022 for both input and output
  -utf8           use UTF-8 for both input and output
  -numeric or -n  output numeric rather than named entities
  -modify or -m   to modify original files
  -errors or -e   only show errors
  -f <file>       write errors to <file>
  -xml            use this when input is wellformed xml
  -asxml          to convert html to wellformed xml
  -slides         to burst into slides on h2 elements
  -help   or -h   list command line options
Input/Output default to stdin/stdout respectively
Single letter options apart from -f may be combined
as in:  tidy -f errs.txt -imu foo.html
For further info on HTML see http://www.w3.org/MarkUp
[rbulling@tiamat:~]$ rpm -q tidy
tidy-26jun99-1
[rbulling@tiamat:~]$ uname -a Linux 
tiamat.obscure.org 2.0.35 #2 Wed Aug 19 18:53:40 EDT 1998 alpha unknown 
[rbulling@tiamat:~]$ gcc -v Reading
specs from /usr/lib/gcc-lib/alpha-linux/2.7.2.1/specs
gcc version 2.7.2.1
[rbulling@tiamat:~]$ echo 'Ampersand processing is broken & I hope you can fix 
it' > x.html
[rbulling@tiamat:~]$ tidy x.html

Tidy (vers 26th June 1999) Parsing "x.html"
line 1 column 32 - Warning: unescaped & which should be written as &amp;
line 1 column 32 - Warning: inserting missing 'title' element

"x.html" appears to be HTML 2.0
2 warnings/errors were found!

<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title></title>
</head>
<body>
Ampersand processing is broken &mp; I hope you can fix it
</body>
</html>

HTML & CSS specifications are available from http://www.w3.org/
To learn more about Tidy see http://www.w3.org/People/Raggett/tidy/
Please send bug reports to Dave Raggett care of <html-tidy@w3.org>
Lobby your company to join W3C, see http://www.w3.org/Consortium
[rbulling@tiamat:~]$ exit

Script done on Mon Jul  5 14:13:50 1999


----
 Richard Bullington <rbulling@obscure.org> |    Fearless Leader of
     http://www.obscure.org/~rbulling      | The Obscure Organization
Received on Monday, 5 July 1999 14:26:18 GMT

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