[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#731008: ITP: libhtml-prettyprinter-perl -- module that generates nice HTML files from HTML syntax trees



Package: wnpp
Owner: Radu-Bogdan Croitoru <croitoruradubogdan@gmail.com>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org,debian-perl@lists.debian.org

* Package name    : libhtml-prettyprinter-perl
  Version         : 0.03
  Upstream Author : Claus Schotten <schotten@gmx.de>
* URL             : https://metacpan.org/release/HTML-PrettyPrinter
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : module that generates nice HTML files from HTML syntax trees

HTML::PrettyPrinter produces nicely formatted HTML code from a HTML syntax
tree. It is especially usefull if the produced HTML file shall be read or
edited manually afterwards. Various parameters let you adapt the output to
different styles and requirements.

If you don't care how the HTML source looks like as long as it is valid and
readable by browsers, you should use the as_HTML() method of HTML::Element
instead of the pretty printer. It is about five times faster.

The pretty printer will handle line wrapping, indention and structuring by
the way the whitespace in the tree is represented in the output. Furthermore
upper/lowercase markup and markup minimization, quoting of attribute values,
the encoding of entities and the presence of optional end tags are
configurable.


Reply to: