From c9989a7404d7d04d5a3de35f7783e3fe298e69be Mon Sep 17 00:00:00 2001 From: Chris 'BinGOs' Williams Date: Tue, 15 Mar 2011 16:47:47 +0000 Subject: Update Pod-Simple to CPAN version 3.16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [DELTA] 2011-03-14 David E. Wheeler * Release 3.16 Fixed invalid HTML generated for nested lists by Pod::Simple::XHTML (Fitz Elliott). Replaced the invalid "" tag -- created for "S<>" -- with '' (Fitz Elliott). Fixed some nerbles in our own Pod (Michael Stevens) Improved the "Minimal code" example in Pod::Simple::HTML. The key is to use pase_file(), not parse_from_file() (which should otherwise be undocumented, and is just there for Pod::Parser compatibility. Thanks to prodding from Ævar Arnfjörð Bjarmason (RT #65428). Added the html_charset() and html_encode_chars() attributes to Pod::Simple::XHTML. Inspired by a bug report from Agent Zhang (章亦春) (RT #29587). Added "Minimal code" example to the Pod::Simple::XHTML documentation. Fixed mispelling of the "=encoding" markup in the parser (it was spelled "=encode"). Thanks to "TTY" for the patch. (RT #24820). --- cpan/Pod-Simple/lib/Pod/Simple/HTML.pm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'cpan/Pod-Simple/lib/Pod/Simple/HTML.pm') diff --git a/cpan/Pod-Simple/lib/Pod/Simple/HTML.pm b/cpan/Pod-Simple/lib/Pod/Simple/HTML.pm index 21bf7c24fd..9d7d069645 100644 --- a/cpan/Pod-Simple/lib/Pod/Simple/HTML.pm +++ b/cpan/Pod-Simple/lib/Pod/Simple/HTML.pm @@ -10,7 +10,7 @@ use vars qw( $Doctype_decl $Content_decl ); @ISA = ('Pod::Simple::PullParser'); -$VERSION = '3.15'; +$VERSION = '3.16'; BEGIN { if(defined &DEBUG) { } # no-op @@ -902,10 +902,10 @@ TODO =head2 Minimal code use Pod::Simple::HTML; - my $html; - $p->output_string(\$html); - $p->parse_from_file('path/to/Module/Name.pm'); - open my $out, '>', 'out.html' or die; + my $p = Pod::Simple::HTML->new; + $p->output_string(\my $html); + $p->parse_file('path/to/Module/Name.pm'); + open my $out, '>', 'out.html' or die "Cannot open 'out.html': $!\n"; print $out $html; =head2 More detailed example @@ -946,7 +946,7 @@ Tell the parser where should the output go. In this case it will be placed in th Parse and process a file with pod in it: - $p->parse_from_file('path/to/Module/Name.pm'); + $p->parse_file('path/to/Module/Name.pm'); =head1 METHODS @@ -1005,7 +1005,7 @@ to be added at the top of the generated HTML. =head2 html_header_after_title -Includes the closing tag of and throught the rest of the head +Includes the closing tag of and through the rest of the head till the opening of the body $p->html_header_after_title('...'); @@ -1064,7 +1064,7 @@ Meanwhile in script.pl: my $html; $p->output_string(\$html); - $p->parse_from_file('path/to/Module/Name.pm'); + $p->parse_file('path/to/Module/Name.pm'); open my $out, '>', 'out.html' or die; print $out $html; @@ -1105,7 +1105,7 @@ merchantability or fitness for a particular purpose. =head1 ACKNOWLEDGEMENTS -Thanks to L for permission to use its +Thanks to L for permission to use its L site for man page links. Thanks to L for permission to use the -- cgit v1.2.1