BSD Ports

textproc/py-pytidylib 0.3.2_1 MidnightBSD

Python wrapper for HTML Tidy (tidylib)

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
textproc, python

Description

PyTidyLib is a Python package that wraps the HTML Tidy library. This allows you, from Python code, to "fix" invalid (X)HTML markup. Some of the library's many capabilities include:

* Clean up unclosed tags and unescaped characters such as ampersands * Output HTML 4 or XHTML, strict or transitional, and add missing doctypes * Convert named entities to numeric entities, which can then be used in XML documents without an HTML doctype. * Clean up HTML from programs such as Word (to an extent) * Indent the output, including proper (i.e. no) indenting for pre elements, which some (X)HTML indenting code overlooks.

In the other systems

SystemPortVersion
MidnightBSDtextproc/py-pytidylib0.3.2_1
FreeBSDtextproc/py-pytidylib0.3.2_2
DragonFlytextproc/py-pytidylib0.3.2_2
HardenedBSDtextproc/py-pytidylib0.3.2_2
GhostBSDtextproc/py-pytidylib0.3.2_2

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}pytidylib

From mports:

cd /usr/mports/textproc/py-pytidylib && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytidylib>0:textproc/py-pytidylib

Dependencies

No port depends on this one.

Configuration

Options name: textproc_pytidylib

OptionDefaultDescription
TIDYHTML5onUse tidy-html5
TIDYLIBoffUse tidylib
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
pytidylib-0.3.2.tar.gz8766922b1c8d75970d8064ff999c2369e98af1d0685417eda4c829a5c9f56764b0af3
Master sites 1
  • PYPI