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
| System | Port | Version |
|---|---|---|
| MidnightBSD | textproc/py-pytidylib | 0.3.2_1 |
| FreeBSD | textproc/py-pytidylib | 0.3.2_2 |
| DragonFly | textproc/py-pytidylib | 0.3.2_2 |
| HardenedBSD | textproc/py-pytidylib | 0.3.2_2 |
| GhostBSD | textproc/py-pytidylib | 0.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
| Option | Default | Description |
|---|---|---|
| TIDYHTML5 | on | Use tidy-html5 |
| TIDYLIB | off | Use tidylib |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pytidylib-0.3.2.tar.gz | 87669 | 22b1c8d75970d8064ff999c2369e98af1d0685417eda4c829a5c9f56764b0af3 |
Master sites 1
- PYPI