Skip to content

Commit 85fd191

Browse files
author
Brock Wilcox
committed
Remove some unneeded unspace
1 parent 4b23aca commit 85fd191

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

htmlify.p6

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ sub MAIN(
157157
sub process-pod-dir($dir, :&sorted-by = &[cmp], :$sparse) {
158158
say "Reading doc/$dir ...";
159159
my @pod-sources =
160-
recursive-dir("doc/$dir/")\
161-
.grep({.path ~~ / '.pod' $/})\
162-
.map({;
163-
.path.subst("doc/$dir/", '')\
164-
.subst(rx{\.pod$}, '')\
160+
recursive-dir("doc/$dir/")
161+
.grep({.path ~~ / '.pod' $/})
162+
.map({
163+
.path.subst("doc/$dir/", '')
164+
.subst(rx{\.pod$}, '')
165165
.subst(:g, '/', '::')
166166
=> $_
167167
}).sort(&sorted-by);
@@ -584,7 +584,7 @@ sub write-search-file () {
584584
$s.trans([</ \\ ">] => [<\\/ \\\\ \\">]);
585585
}
586586
my $items = $*DR.get-kinds.map(-> $kind {
587-
$*DR.lookup($kind, :by<kind>).categorize({escape .name})\
587+
$*DR.lookup($kind, :by<kind>).categorize({escape .name})
588588
.pairs.sort({.key}).map: -> (:key($name), :value(@docs)) {
589589
qq[[\{ label: "{
590590
( @docs > 1 ?? $kind !! @docs.[0].subkinds[0] ).wordcase
@@ -688,7 +688,7 @@ sub write-main-index(:$kind, :&summary = {Nil}) {
688688
"Use the above menu to narrow it down topically."
689689
),
690690
pod-table($*DR.lookup($kind, :by<kind>)\
691-
.categorize(*.name).sort(*.key)>>.value\
691+
.categorize(*.name).sort(*.key)>>.value
692692
.map({[
693693
.map({.subkinds // Nil}).unique.join(', '),
694694
pod-link(.[0].name, .[0].url),
@@ -705,7 +705,7 @@ sub write-sub-index(:$kind, :$category, :&summary = {Nil}) {
705705
"Perl 6 {$category.tc} {$kind.tc}s",
706706
pod-table($*DR.lookup($kind, :by<kind>)\
707707
.grep({$category .categories})\ # XXX
708-
.categorize(*.name).sort(*.key)>>.value\
708+
.categorize(*.name).sort(*.key)>>.value
709709
.map({[
710710
.map({.subkinds // Nil}).unique.join(', '),
711711
pod-link(.[0].name, .[0].url),
@@ -717,8 +717,8 @@ sub write-sub-index(:$kind, :$category, :&summary = {Nil}) {
717717

718718
sub write-kind($kind) {
719719
say "Writing per-$kind files ...";
720-
$*DR.lookup($kind, :by<kind>)\
721-
.categorize({.name})\
720+
$*DR.lookup($kind, :by<kind>)
721+
.categorize({.name})
722722
.kv.map: -> $name, @docs {
723723
my @subkinds = @docs.map({.subkinds}).unique;
724724
my $subkind = @subkinds.elems == 1 ?? @subkinds.list[0] !! $kind;

0 commit comments

Comments
 (0)