Skip to content

Commit 145185a

Browse files
committed
Run doc output through fmt on the way to page
1 parent d3ef4e1 commit 145185a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/p6doc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ sub show-docs(Str $path, :$section) {
5656
%*ENV<PERL6_POD_HEADING> = $section;
5757
my $i = findbin() ~ '../lib';
5858
say "launching '$*EXECUTABLE_NAME -I$i --doc=SectionFilter $path | $pager'" if DEBUG;
59-
shell "$*EXECUTABLE_NAME -I$i --doc=SectionFilter $path | $pager";
59+
shell "$*EXECUTABLE_NAME -I$i --doc=SectionFilter $path | fmt -w 80 | $pager";
6060
}
6161
else {
62-
shell "$*EXECUTABLE_NAME --doc $path | $pager";
62+
shell "$*EXECUTABLE_NAME --doc $path | fmt -w 80 | $pager";
6363
}
6464

6565
}

0 commit comments

Comments
 (0)