The HTML Tidy package contains a command line tool and libraries used to read HTML, XHTML and XML files and write cleaned up markup. It detects and corrects many common coding errors and strives to produce visually equivalent markup that is both W3C compliant and compatible with most browsers.
Download (HTTP): http://tidy.sourceforge.net/src/tidy_src_050722.tgz
Download MD5 sum: 0ef3bf907a8429b2bc1e66e43bfff3d7
Download size: 254 KB
Estimated disk space required: 10.3 MB
Estimated build time: 0.2 SBU
HTML Tidy is updated very frequently by its maintainers, and the source package listed above may not be available at the listed URL due to the release of a newer version. The most current source package can be always be downloaded from http://tidy.sourceforge.net/src/. If this version is newer than the version listed above, the following instructions should work, but have not yet been tested by BLFS. If you'd rather download the version listed above, you can find it at http://tidy.sourceforge.net/src/old/.
Documentation: http://tidy.sourceforge.net/docs/tidy_docs_050705.tgz
Download MD5 sum: 2e6533fc48b077ff6243deaf21a781de
Download size: 150 KB
The HTML Tidy documentation is contained in a separate tarball. Unpack both the source and docs tarballs before starting the build.
Install HTML Tidy by running the following commands:
patch -Np1 -i ../tidy-050722-prevent_PRE_newlines-1.patch && sh build/gnuauto/setup.sh && ./configure --prefix=/usr && make
This package does not come with a test suite.
Now, as the root user:
make install
If you have libxslt-1.1.14 installed, issue the following commands as an unprivileged user to build the man page and HTML documentation:
cd htmldoc && tidy -xml-help > tidy-help.xml && tidy -xml-config > tidy-config.xml && xsltproc -o tidy.1 tidy1.xsl tidy-help.xml && xsltproc -o quickref.html quickref-html.xsl tidy-config.xml && cd ..
If you built the man page and the Quick Reference HTML file, install the man page by issuing the following command as the root user:
install -v -m644 htmldoc/tidy.1 /usr/share/man/man1
Now finish the installation by installing the pre-built documentation as the root user:
install -v -m755 -d /usr/share/doc/tidy && cp -v -R htmldoc/* /usr/share/doc/tidy
sh build/gnuauto/setup.sh: This command prepares the source tree for building using the GNU “Auto” tools.
Last updated on 2005-08-01 13:29:19 -0600