diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2011-03-15 16:47:47 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2011-03-15 16:47:47 +0000 |
commit | c9989a7404d7d04d5a3de35f7783e3fe298e69be (patch) | |
tree | a2557959c581d17df6023bcf82a386481b8cba5d /cpan/Pod-Simple/lib/Pod/Simple/HTML.pm | |
parent | 0d160371061f6cce0d19afa2e5e94dc360c63a4d (diff) | |
download | perl-c9989a7404d7d04d5a3de35f7783e3fe298e69be.tar.gz |
Update Pod-Simple to CPAN version 3.16
[DELTA]
2011-03-14 David E. Wheeler <david@justatheory.org>
* Release 3.16
Fixed invalid HTML generated for nested lists by Pod::Simple::XHTML
(Fitz Elliott).
Replaced the invalid "<nobr>" tag -- created for "S<>" -- with
'<span style="white-space: nowrap;">' (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).
Diffstat (limited to 'cpan/Pod-Simple/lib/Pod/Simple/HTML.pm')
-rw-r--r-- | cpan/Pod-Simple/lib/Pod/Simple/HTML.pm | 18 |
1 files changed, 9 insertions, 9 deletions
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 </title> and throught the rest of the head +Includes the closing tag of </title> and through the rest of the head till the opening of the body $p->html_header_after_title('</title>...</head><body id="my_id">'); @@ -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<Hurricane Electrict|http://he.net/> for permission to use its +Thanks to L<Hurricane Electric|http://he.net/> for permission to use its L<Linux man pages online|http://man.he.net/> site for man page links. Thanks to L<search.cpan.org|http://search.cpan.org/> for permission to use the |