Skip to content

Commit

Permalink
sort: fix display of verbatim blocks by using spaces, not tabs
Browse files Browse the repository at this point in the history
The `use sort 'defaults';` line used only one tab before the comment;
the other lines had two. This renders inconsistently depending on how
much initial space is used in the output (and where the tab stops are).

For example, <https://perldoc.perl.org/sort#SYNOPSIS> looked like

    use sort 'stable';              # guarantee stability
    use sort 'defaults';    # revert to default behavior
    no  sort 'stable';              # stability not important

Using spaces ensures the "#" signs are aligned everywhere.
  • Loading branch information
mauke committed Jun 19, 2024
1 parent 9f530bb commit 9e4e463
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/sort.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sort;
use strict;
use warnings;

our $VERSION = '2.05';
our $VERSION = '2.06';

sub import {
shift;
Expand Down Expand Up @@ -51,9 +51,9 @@ sort - perl pragma to control sort() behaviour
The sort pragma is now a no-op, and its use is discouraged. These three
operations are valid, but have no effect:
use sort 'stable'; # guarantee stability
use sort 'defaults'; # revert to default behavior
no sort 'stable'; # stability not important
use sort 'stable'; # guarantee stability
use sort 'defaults'; # revert to default behavior
no sort 'stable'; # stability not important
=head1 DESCRIPTION
Expand All @@ -63,7 +63,7 @@ C<sort()> function.
Prior to v5.28.0 there were two other options:
use sort '_mergesort';
use sort '_qsort'; # or '_quicksort'
use sort '_qsort'; # or '_quicksort'
If you try and specify either of these in v5.28+ it will croak.
Expand Down

0 comments on commit 9e4e463

Please sign in to comment.