HTML Tidy-050305

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

[Note]

Note

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/.

Additional downloads

Documentation

HTML Tidy dependencies

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-050305-prevent_PRE_newlines-1.patch &&
sh build/gnuauto/setup.sh &&
./configure --prefix=/usr &&
make

Now, as the root user:

make install &&
install -v -m644 htmldoc/man_page.txt \
    /usr/share/man/man1/tidy.1 &&
install -v -d -m755 /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 GNUAuto” 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 -config <file> parameter.

Contents

Installed Programs: tab2space and tidy
Installed Library: libtidy.[so,a]
Installed Directory: /usr/share/doc/tidy

Short Descriptions

tab2space

is a utility to expand tabs and ensure consistent line endings.

tidy

validates, corrects, and pretty-prints HTML files.

libtidy.[so,a]

libraries provide the HTML Tidy API functions to tidy and can also be called by other programs.

Last updated on 2005-03-07 07:02:22 -0700