%general-entities; ]> $LastChangedBy$ $Date$ HTML Tidy-&tidy-version; HTML Tidy Introduction to HTML Tidy 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. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &tidy-md5sum; Download size: &tidy-size; Estimated disk space required: &tidy-buildsize; Estimated build time: &tidy-time; 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 . 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 . Additional Downloads Documentation Documentation: Download MD5 sum: &tidy-docs-md5sum; Download size: &tidy-docs-size; Patches Required patch: HTML Tidy Dependencies Recommended (To Build the Man Page and Quick Reference Docs) Optional Dmalloc Installation of HTML 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-&tidy-version;-prevent_PRE_newlines-1.patch && sh build/gnuauto/setup.sh && ./configure --prefix=/usr && make Now, as the root user: make install If you have the dependencies shown above to build the man page and HTML documentation, issue the following commands as an unprivileged user: cd htmldoc && tidy -xml-help >tidy-help.xml && tidy -xml-config >tidy-config.xml && xsltproc --xinclude --nonet --stringparam base.dir . \ tidy1.xsl tidy-help.xml >tidy.1 && xsltproc --xinclude --nonet --stringparam base.dir . \ quickref-html.xsl tidy-config.xml >quickref.html && 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 Command Explanations sh build/gnuauto/setup.sh: This command prepares the source tree for building using the GNU Auto tools. Configuring HTML Tidy Config Files The absolute path of the file specified in $HTML_TIDY. Configuration Information The default configuration options can be set in the file defined in $HTML_TIDY. Additional configuration options can be passed to tidy via command line parameters or the parameter. Contents Installed Programs Installed Library Installed Directory tab2space and tidy libtidy.[so,a] /usr/share/doc/tidy Short Descriptions tab2space is a utility to expand tabs and ensure consistent line endings. tab2space tidy validates, corrects, and pretty-prints HTML files. tidy libtidy.[so,a] libraries provide the HTML Tidy API functions to tidy and can also be called by other programs. libtidy.[so,a]