From daf86bd4ffb76df15eae392274af52f1531bce91 Mon Sep 17 00:00:00 2001 From: Lukas Mai Date: Tue, 18 Jun 2024 06:26:22 +0200 Subject: [PATCH] sort: fix display of verbatim blocks by using spaces, not tabs 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, 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. --- lib/sort.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/sort.pm b/lib/sort.pm index f76a30bfc523..9dc2addea49d 100644 --- a/lib/sort.pm +++ b/lib/sort.pm @@ -3,7 +3,7 @@ package sort; use strict; use warnings; -our $VERSION = '2.05'; +our $VERSION = '2.06'; sub import { shift; @@ -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 @@ -63,7 +63,7 @@ C 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.