Subject: | Pod::Manual dies on filename tag in pod files |
Date: | Mon, 23 Feb 2009 20:59:54 -0500 |
To: | bug-pod-manual [...] rt.cpan.org |
From: | Telemachus <telemachus [...] arpinum.org> |
Using Pod::Manual 0.08 with Perl 5.10 on Debian Linux, Pod::Manual dies if
the pod contains F<> tags.
Test case (based on the moose.pl example in Pod::Manual's example folder):
#!/usr/bin/perl
use strict;
use warnings;
use Pod::Manual;
use Moose 0.71;
my $manual = Pod::Manual->new(
title => 'Moose Cookbook',
pdf_generator => 'latex'
);
$manual->add_chapters(
qw/
Moose::Cookbook::Basics::Recipe1
/
);
my $pdf_file = 'moose_cookbook.pdf';
$manual->save_as_pdf($pdf_file);
print "pdf document '$pdf_file' created\n";
Which produces this:
Moose does not export its sugar to the 'main' package.
couldn't convert to docbook: tag filename not recognized
at moose.pl line 36
The problem goes away if you replace F<> tags with B<> in the relevant pod.
Thanks, T