File: Pod2Html.pm

package info (click to toggle)
libur-perl 0.470%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,192 kB
  • sloc: perl: 61,814; javascript: 255; xml: 108; sh: 13; makefile: 9
file content (35 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package UR::Doc::Pod2Html;

use strict;
use warnings;

our $VERSION = "0.47"; # UR $VERSION;

use Data::Dumper;

use parent 'Pod::Simple::HTML';


$Pod::Simple::HTML::Perldoc_URL_Prefix = '';
$Pod::Simple::HTML::Perldoc_URL_Postfix = '.html';


sub do_top_anchor {
    my ($self, $value) = @_;
    $self->{__do_top_anchor} = $value;
}

sub do_beginning {
    return 1;
}

sub do_end {
    return 1;
}

sub _add_top_anchor {
    my $self = shift;
    return $self->SUPER::_add_top_anchor(@_) if $self->{__do_top_anchor};
}

1;