Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/Pod-Html/lib/Pod/Html.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Pod::Html;
use strict;
use Exporter 'import';

our $VERSION = 1.35;
our $VERSION = 1.36;
$VERSION = eval $VERSION;
our @EXPORT = qw(pod2html);

Expand Down
6 changes: 4 additions & 2 deletions ext/Pod-Html/lib/Pod/Html/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Pod::Html::Util;
use strict;
use Exporter 'import';

our $VERSION = 1.35; # Please keep in synch with lib/Pod/Html.pm
our $VERSION = 1.36; # Please keep in synch with lib/Pod/Html.pm
$VERSION = eval $VERSION;
our @EXPORT_OK = qw(
anchorify
Expand Down Expand Up @@ -250,7 +250,9 @@ sub anchorify {
$anchor =~ s/"/_/g; # Replace double quotes with underscores
$anchor =~ s/_$//; # ... but strip any final underscore
$anchor =~ s/[<>&']//g; # Strip the remaining HTML special characters
$anchor =~ s/^\s+//; s/\s+$//; # Strip white space.
$anchor =~ s/^\s+//; # Strip white space.
$anchor =~ s/\s+$//;

$anchor =~ s/^([^a-zA-Z]+)$/pod$1/; # Prepend "pod" if no valid chars.
$anchor =~ s/^[^a-zA-Z]+//; # First char must be a letter.
$anchor =~ s/[^-a-zA-Z0-9_:.]+/-/g; # All other chars must be valid.
Expand Down
2 changes: 1 addition & 1 deletion ext/Pod-Html/t/lib/Testing.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Testing;
use 5.10.0;
use warnings;
use Exporter 'import';
our $VERSION = 1.35; # Let's keep this same as lib/Pod/Html.pm
our $VERSION = 1.36; # Let's keep this same as lib/Pod/Html.pm
$VERSION = eval $VERSION;
our @EXPORT_OK = qw(
setup_testing_dir
Expand Down
Loading