HTML Tidy is doing a poor job; please update to newer HTML Tidy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tidy-html5 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In the past I ran HTML pages through HTML Tidy provided by MacPorts on OS X. I'm now working on a Ubuntu 16.10/Yakkety system, and its doing an awful job on the pages. When I diff the pages nearly everything has changed.
For example, Ubuntu's HTML Tidy is not indenting, its adding extra characters and its stripping whitespace that should remain. Others have experienced the problem, too: https:/
Please update to a more recent version of HTML Tidy.
**********
The nice thing about this report is the pages and the script is located at https:/
git clone https:/
cd website
./cleanup.sh
HTML Tidy is invoked with the following in the script:
# Cleanup HTML files
for file in *.html
do
echo "**************** $file ****************"
echo "tidy: processing file $file..."
"$HTML_TIDY" --quiet yes --output-bom no --indent auto --wrap 90 -m "$file"
echo "sed: processing file $file..."
# Delete trailing whitespace
"$SED" "${SED_OPTS[@]}" -e's/[[
# Delete the generator markup tag
"$SED" "${SED_OPTS[@]}" -e'/<meta name="generator"/d' "$file"
# Fix CRLF endings after sed
unix2dos "$file"
done
**********
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety
**********
$ apt-cache show tidy
Package: tidy
Priority: optional
Section: universe/web
Installed-Size: 83
Maintainer: Ubuntu Developers <email address hidden>
Original-
Architecture: amd64
Source: tidy-html5
Version: 1:5.2.0-2
Depends: libc6 (>= 2.14), libtidy5 (= 1:5.2.0-2)
Filename: pool/universe/
Size: 25524
MD5sum: 06fda2013e8edb3
SHA1: 58b1b60cd8bc2a0
SHA256: 6c9492519b78c37
...
summary: |
- HTML Tidy is dooing a poor job; please update to newer HTML Tidy + HTML Tidy is doing a poor job; please update to newer HTML Tidy |
Changed in tidy-html5 (Ubuntu): | |
status: | Confirmed → Fix Released |
Thanks for reporting. It looks like in 16.10 and later, the package for tidy is tidy-html5. I've taken the liberty of moving this bug report to the right package.