Skip to content

Commit 79e3b30

Browse files
committed
Trying to solve #2320. Not there yet
1 parent df0b71d commit 79e3b30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Pod/Htmlify.pm6

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ sub rewrite-url($s) is export {
8282
if !$r.contains('#') && !$r.ends-with('.html') && ( $r.match: / '/.' / ) {
8383
$r ~= '.html';
8484
}
85+
# If it ends with a space
86+
if !$r.contains(' ') && !$r.ends-with('.html') {
87+
$r ~= '.html';
88+
}
8589
return %cache{$s} = $r;
8690
}
8791

0 commit comments

Comments
 (0)