summaryrefslogtreecommitdiffstats
path: root/podwrapper.pl.in
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-17 13:16:40 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-17 13:18:34 +0100
commit182b4a66609ffd5366575d72351cd8174cf68145 (patch)
tree12ef8d199fa37f3caa9f18d9b5a2cec08ba6d723 /podwrapper.pl.in
parent9967ad3fa13178c70afd5da77f77a4115808733d (diff)
downloadlibguestfs-182b4a66609ffd5366575d72351cd8174cf68145.tar.gz
libguestfs-182b4a66609ffd5366575d72351cd8174cf68145.tar.xz
libguestfs-182b4a66609ffd5366575d72351cd8174cf68145.zip
podwrapper: Subclass Pod::Man so we can fix the way links are generated.
Diffstat (limited to 'podwrapper.pl.in')
-rwxr-xr-xpodwrapper.pl.in27
1 files changed, 22 insertions, 5 deletions
diff --git a/podwrapper.pl.in b/podwrapper.pl.in
index ac08ec8c..7ae3e29b 100755
--- a/podwrapper.pl.in
+++ b/podwrapper.pl.in
@@ -235,11 +235,28 @@ foreach (@verbatims) {
}
# Output man page.
+SUBMAN: {
+ package Podwrapper::Man;
+
+ use vars qw(@ISA $VERSION);
+ @ISA = qw(Pod::Man);
+ $VERSION = $package_version;
+
+ # Override the L<> method.
+ sub cmd_l
+ {
+ my ($self, $attrs, $text) = @_;
+ return $text;
+ }
+}
+
if ($man) {
- my $parser = Pod::Man->new (name => $name,
- release => $release, section => $section,
- center => "Virtualization Support",
- date => $date);
+ my $parser = Podwrapper::Man->new (
+ name => $name,
+ release => $release, section => $section,
+ center => "Virtualization Support",
+ date => $date
+ );
my $output;
$parser->output_string (\$output);
$parser->parse_string_document ($content)
@@ -251,7 +268,7 @@ if ($man) {
}
# Output HTML.
-SUBCLASS: {
+SUBHTML: {
# Subclass Pod::Simple::XHTML. See the documentation.
package Podwrapper::XHTML;