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/old/tidy_src_051026.tgz
Download (FTP): ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/tidy_src_051026.tgz
Download MD5 sum: 1e39fafd6808978871346658c8da1454
Download size: 256 KB
Estimated disk space required: 10.3 MB
Estimated build time: 0.2 SBU
Documentation: http://tidy.sourceforge.net/docs/tidy_docs_051020.tgz
Download MD5 sum: 86de2f198e57399c063d2567b2a25628
Download size: 150 KB
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/tidy
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-051026-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.17 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-051020 && cp -v -R htmldoc/* /usr/share/doc/tidy-051020
sh build/gnuauto/setup.sh: This command prepares the source tree for building using the GNU “Auto” tools.
Last updated on 2007-02-01 12:14:21 -0600