From: Axel Kollmorgen Date: Thu, 27 Sep 2007 16:03:38 +0000 (-0700) Subject: [perl #45823] [PATCH] v5.8.8. pod2html: anchor, but anchor, but link From: Axel Kollmorgen (via RT) Message-ID: p4raw-id: //depot/perl@32079 --- diff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm index 232bd2b..cd24d69 100644 --- a/lib/Pod/Html.pm +++ b/lib/Pod/Html.pm @@ -1987,7 +1987,7 @@ sub coderef($$){ if( exists $Pages{$page} and $Pages{$page} =~ /([^:.]*)\.[^:]*:/){ $page = $1 . '.html'; } - my $link = "$Htmlroot/$page#item_" . anchorify($fid); + my $link = "$Htmlroot/$page#" . anchorify($fid); # Here, we take advantage of the knowledge that $Htmlfileurl # ne '' implies $Htmlroot eq ''. @@ -1998,7 +1998,7 @@ sub coderef($$){ $url = $link ; } } else { - $url = "#item_" . anchorify($fid); + $url = "#" . anchorify($fid); } confess "url has space: $url" if $url =~ /"[^"]*\s[^"]*"/; diff --git a/lib/Pod/t/htmllink.t b/lib/Pod/t/htmllink.t index 25147bb..e8c10a7 100644 --- a/lib/Pod/t/htmllink.t +++ b/lib/Pod/t/htmllink.t @@ -58,39 +58,39 @@ __DATA__

section1

section 2

section three

-

item1

-

item 2

-

item three

+

item1

+

item 2

+

item three

section1

section 2

section three

-

item1

-

item 2

-

item three

+

item1

+

item 2

+

item three

section1

section 2

section three

-

item1

-

item 2

-

item three

+

item1

+

item 2

+

item three

text

text

text

-

text

-

text

-

text

+

text

+

text

+

text

text

text

text

-

text

-

text

-

text

+

text

+

text

+

text

text

text

text

-

text

-

text

-

text

+

text

+

text

+

text