podwrapper: Ignore $parser->html_charset if it fails (thanks Wulf C. Krueger).

This method was added in Pod::Simple 3.16 so earlier versions of Perl
won't have it.  It's not the end of the world if we don't set it.
This commit is contained in:
Richard W.M. Jones
2012-08-28 04:46:04 -04:00
parent f23a5c468e
commit d555a68ca6

View File

@@ -465,7 +465,8 @@ if ($html) {
my $parser = Podwrapper::XHTML->new;
my $output;
$parser->output_string (\$output);
$parser->html_charset ("UTF-8");
# Added in Pod::Simple 3.16, 2011-03-14.
eval { $parser->html_charset ("UTF-8") };
$parser->html_css ("pod.css");
$parser->index (1);
$parser->parse_string_document ($content);