mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user