summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMarc Green <marcgreen@cpan.org>2011-06-08 09:11:41 -0400
committerMarc Green <marcgreen@cpan.org>2011-10-31 13:26:39 -0400
commitd5c3bc559adb73b5b40e2812eaaa04abe248a767 (patch)
tree918e63f4cdad21845c43f9f05fbe86f5a6bdc751 /ext
parent9949917516c8bca1036187e3e878ed8869558a65 (diff)
downloadperl-d5c3bc559adb73b5b40e2812eaaa04abe248a767.tar.gz
Consider $Podroot when finding PODs; consider $Quiet
Diffstat (limited to 'ext')
-rw-r--r--ext/Pod-Html/lib/Pod/Html.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/Pod-Html/lib/Pod/Html.pm b/ext/Pod-Html/lib/Pod/Html.pm
index 61bc40386f..b990682e28 100644
--- a/ext/Pod-Html/lib/Pod/Html.pm
+++ b/ext/Pod-Html/lib/Pod/Html.pm
@@ -249,16 +249,15 @@ sub pod2html {
init_globals();
parse_command_line();
+ # Get the full path
+ $Podpath = map { $Podroot.$_ } @Podpath;
+
# finds all pod modules/pages in podpath, stores in %Pages
# --recurse is implemented in _save_page for now (its inefficient right now)
# (maybe subclass ::Search to implement instead)
Pod::Simple::Search->new->inc(0)->verbose($Verbose)
->callback(\&_save_page)->survey(@Podpath);
- # finds all =head/=item directives in libpods/infile, stores in %Sections
- # include inc or not? include ./$0 (make it top priority). need to figure out how pod::html does it
-# my $sections = Pod::Simple::Search->new->inc
-
# set options for the parser
my $parser = Pod::Simple::XHTML::LocalPodLinks->new();
$parser->pages(\%Pages);
@@ -266,6 +265,7 @@ sub pod2html {
$parser->html_css($Css);
$parser->index($Doindex);
$parser->output_string(\my $output); # written to file later
+ $parser->quiet($Quiet);
# TODO: implement default title generator in ::xhtml
$parser->force_title(html_escape($Title));
$parser->verbose($Verbose);