Skip to content

Commit 46dff36

Browse files
committed
Refactors a bit htmlify.p6
Putting two literal (which were different) in a constant. This goes towards #1823 (long time overdue) but fixes #2307
1 parent f3263bb commit 46dff36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

htmlify.p6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ use Pod::Convenience;
3838
use Pod::Htmlify;
3939
use OO::Monitors;
4040

41+
constant routine-subs = <sub method term operator trait submethod>;
42+
4143
# Don't include backslash in Win or forwardslash on Unix because they are used
4244
# as directory separators. These are handled in lib/Pod/Htmlify.pm6
4345
my \badchars-ntfs = Qw[ / ? < > : * | " ¥ ];
@@ -80,7 +82,7 @@ my @menu; # for use by future menu autogen
8082
@menu =
8183
('language','' ) => (),
8284
('type', 'Types' ) => <basic composite domain-specific exceptions>,
83-
('routine', 'Routines' ) => <sub method term operator trait submethod>,
85+
('routine', 'Routines' ) => routine-subs,
8486
('programs', '' ) => (),
8587
('examples', 'Examples' ) => (),
8688
('webchat', 'Chat with us') => (),
@@ -912,7 +914,7 @@ sub write-index-files() {
912914

913915
write-main-index :kind<routine> :&summary;
914916

915-
for <sub method term operator submethod> -> $category {
917+
for routine-subs -> $category {
916918
write-sub-index :kind<routine> :$category :&summary;
917919
}
918920
}

0 commit comments

Comments
 (0)