Skip to content

Commit

Permalink
use dashes rather than spaces in link targets
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Dec 27, 2016
1 parent 3d3f904 commit af2e4dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/MetaCPAN/Pod/XHTML.pm
Expand Up @@ -91,6 +91,7 @@ sub id_extras {
$t = decode_entities($t);
$t =~ s/^\s+//;
$t =~ s/\s+$//;
$t =~ s/[\s-]+/-/g;

# $full will be our preferred linking style, without much filtering
# $first will be the first word, often a method/function name
Expand Down

0 comments on commit af2e4dd

Please sign in to comment.