Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for the fall-out of #632
  • Loading branch information
Altai-man committed Aug 6, 2016
1 parent eb847e3 commit 631c34f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htmlify.p6
Expand Up @@ -916,12 +916,12 @@ sub write-kind($kind) {
.origin.url ~ '#' ~ (.subkinds~'_' if .subkinds ~~ /fix/) ~
(
if .subkinds ~~ /fix/ { '' }
# It looks really weird, but in reality, it checks pod content,
# then extracts a link(e.g. 'routine abs'), then this string
# splits by space characted and we take a correct category name.
# It looks really weird, but in reality, it checks the pod content,
# then extracts a link(e.g. '(Type) routine foo'), then this string
# splits by space character and we take a correct category name.
# It works with sub/method/term/routine/*fix types, so all our links
# here are correct.
else { .pod[0].contents[0].contents.Str.split(' ')[0] ~ '_'; }
else { .pod[0].contents[0].contents.Str.split(' ')[1] ~ '_'; }
) ~ .name.subst(' ', '_')),
),
.pod.list,
Expand Down

0 comments on commit 631c34f

Please sign in to comment.