]> git.donarmstrong.com Git - perltidy.git/commitdiff
bump version to .02 20230309.02
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 25 Mar 2023 01:52:51 +0000 (18:52 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 25 Mar 2023 01:52:51 +0000 (18:52 -0700)
24 files changed:
CHANGES.md
bin/perltidy
docs/ChangeLog.html
docs/Tidy.html
docs/perltidy.html
lib/Perl/Tidy.pm
lib/Perl/Tidy.pod
lib/Perl/Tidy/Debugger.pm
lib/Perl/Tidy/DevNull.pm
lib/Perl/Tidy/Diagnostics.pm
lib/Perl/Tidy/FileWriter.pm
lib/Perl/Tidy/Formatter.pm
lib/Perl/Tidy/HtmlWriter.pm
lib/Perl/Tidy/IOScalar.pm
lib/Perl/Tidy/IOScalarArray.pm
lib/Perl/Tidy/IndentationItem.pm
lib/Perl/Tidy/LineBuffer.pm
lib/Perl/Tidy/LineSink.pm
lib/Perl/Tidy/LineSource.pm
lib/Perl/Tidy/Logger.pm
lib/Perl/Tidy/Tokenizer.pm
lib/Perl/Tidy/VerticalAligner.pm
lib/Perl/Tidy/VerticalAligner/Alignment.pm
lib/Perl/Tidy/VerticalAligner/Line.pm

index 790fada7c68f704605b181c6054cb813f59c9357..2dfd7835b8f46b04498556bfce9d2664a9c398e8 100644 (file)
@@ -1,6 +1,6 @@
 # Perltidy Change Log
 
-## 2023 03 09.01
+## 2023 03 09.02
 
     - Issue git #116. A new flag --valign-if-unless, -viu, was added to
       allow postfix 'unless' terms to align with postfix 'if' terms.  The
index e00be9b44ecffdacbe89180b8884fa5156867cbd..6e52e85552838fcde58b2587c4fb44ca1365d367 100755 (executable)
@@ -5666,7 +5666,7 @@ The perltidy binary uses the Perl::Tidy module and is installed when that module
 
 =head1 VERSION
 
-This man page documents perltidy version 20230309.01
+This man page documents perltidy version 20230309.02
 
 =head1 BUG REPORTS
 
index 29ae0f967aaeca3e67a4a8461136581c77e274f1..3137c3d41da5219d960fabd70084423c45a2eb2d 100644 (file)
@@ -1,8 +1,12 @@
 <h1>Perltidy Change Log</h1>
 
-<h2>2023 03 09.01</h2>
+<h2>2023 03 09.02</h2>
 
-<pre><code>- Fixed git #115. In the two most recent CPAN releases, when the
+<pre><code>- Issue git #116. A new flag --valign-if-unless, -viu, was added to
+  allow postfix 'unless' terms to align with postfix 'if' terms.  The
+  default remains not to do this.
+
+- Fixed git #115. In the two most recent CPAN releases, when the
   Perl::Tidy module was called with the source pointing to a file,
   but no destination specified, the output went to the standard
   output instead of to a file with extension ``.tdy``, as it should
index d453160737bccf3586856bb8329ff796441aa069..cf07c72f3bbf6c27a95a5a0ec0c067a3a620ac4b 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents Perl::Tidy version 20230309.01</p>
+<p>This man page documents Perl::Tidy version 20230309.02</p>
 
 <h1 id="LICENSE">LICENSE</h1>
 
index b8d784e8ded1637a4f6939f0dcc711495475ab28..56372995c1bffb9cc3aa76bdd94884fa115a38e8 100644 (file)
 
 <p>But also notice that side comments remain aligned because their alignment is controlled separately with the parameter <b>--valign-side_comments</b> described above.</p>
 
+</dd>
+<dt id="Aligning-postfix-unless-and-if-with---valign-if-unless-or--viu"><b>Aligning postfix unless and if with --valign-if-unless or -viu</b></dt>
+<dd>
+
+<p>By default, postfix <b>if</b> terms align and postfix <b>unless</b> terms align, but separately. For example,</p>
+
+<pre><code>    # perltidy [DEFAULT]
+    print &quot;Tried to add: @ResolveRPM\n&quot; if ( @ResolveRPM and !$Quiet );
+    print &quot;Would need: @DepList\n&quot;      if ( @DepList    and !$Quiet );
+    print &quot;RPM Output:\n&quot;                 unless $Quiet;
+    print join( &quot;\n&quot;, @RPMOutput ) . &quot;\n&quot; unless $Quiet;</code></pre>
+
+<p>The <b>-viu</b> flag causes a postfix <b>unless</b> to be treated as if it were a postfix <b>if</b> for purposes of alignment. Thus</p>
+
+<pre><code>    # perltidy -viu
+    print &quot;Tried to add: @ResolveRPM\n&quot;   if ( @ResolveRPM and !$Quiet );
+    print &quot;Would need: @DepList\n&quot;        if ( @DepList    and !$Quiet );
+    print &quot;RPM Output:\n&quot;                 unless $Quiet;
+    print join( &quot;\n&quot;, @RPMOutput ) . &quot;\n&quot; unless $Quiet;</code></pre>
+
 </dd>
 </dl>
 
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents perltidy version 20230309.01</p>
+<p>This man page documents perltidy version 20230309.02</p>
 
 <h1 id="BUG-REPORTS">BUG REPORTS</h1>
 
index cf2493b5efcd423841cd4cc6c9a3a6efb9886c19..2b66e2f9837418f4c2e9ad1d609f751f5bf1338b 100644 (file)
@@ -114,7 +114,7 @@ BEGIN {
     # then the Release version must be bumped, and it is probably past time for
     # a release anyway.
 
-    $VERSION = '20230309.01';
+    $VERSION = '20230309.02';
 } ## end BEGIN
 
 sub DESTROY {
index 5e04244b47f33334de911ed4dbdb911a2cac36ce..7d64d8139940e272c7e2c2ce5da8ff05adfa83ff 100644 (file)
@@ -469,7 +469,7 @@ The module 'Perl::Tidy' comes with a binary 'perltidy' which is installed when t
 
 =head1 VERSION
 
-This man page documents Perl::Tidy version 20230309.01
+This man page documents Perl::Tidy version 20230309.02
 
 =head1 LICENSE
 
index 98215ac1e519f2931fa92b40dd849bf9720f84d0..3c1f6bf9ce2efcd47d428019fbf98031554651ed 100644 (file)
@@ -8,7 +8,7 @@ package Perl::Tidy::Debugger;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 use constant EMPTY_STRING => q{};
 use constant SPACE        => q{ };
index b6b28c24acf82bcde82571c5eac670ca8f40fb79..fe254280de4329e4440ab44ad3cf16dca6b561b4 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::DevNull;
 use strict;
 use warnings;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 sub new   { my $self = shift; return bless {}, $self }
 sub print { return }
 sub close { return }
index f65d4cea275b14d2e04f7e9c4843885761fa1e0d..cfa870ed677b0de99de28341dac61c7d3e576c4e 100644 (file)
@@ -18,7 +18,7 @@ package Perl::Tidy::Diagnostics;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 use constant EMPTY_STRING => q{};
 
index debc3760e650b6f63d37def234636b5dd7243e5d..b9c22744df94f737cb738515bdbebfdc71195922 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::FileWriter;
 use strict;
 use warnings;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 use constant DEVEL_MODE   => 0;
 use constant EMPTY_STRING => q{};
index 06dc0e00d34ef83f283b6b06dbe6639467aaf495..446f217c0065bca52be3b20d8b63783ca0eefe54 100644 (file)
@@ -53,7 +53,7 @@ use constant SPACE        => q{ };
 use Carp;
 use English    qw( -no_match_vars );
 use List::Util qw( min max );          # min, max are in Perl 5.8
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 # The Tokenizer will be loaded with the Formatter
 ##use Perl::Tidy::Tokenizer;    # for is_keyword()
index d3adf1ffbeb7a4553b6a42d528bac43b37396efd..7ad247223baf65942229dcf099e10cc02d487295 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::HtmlWriter;
 use strict;
 use warnings;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 use English qw( -no_match_vars );
 use File::Basename;
index b69e4a1c98334673e02909e41c12ba3d5586ac9c..c83d71b1944923fc318148ff13982ba698e3c1c8 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 use constant EMPTY_STRING => q{};
 
index a5ddc130224fe36f7c20c311796340de669b66a3..eb5a39b3f4a942ebeadebaf982b1bfd26599e434 100644 (file)
@@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 sub AUTOLOAD {
 
index a6d4f3e87ca268e4f8dd39433cffd59d64b265b1..77b7190ed48563da353435f6109300c0fcdb1bd3 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::IndentationItem;
 use strict;
 use warnings;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 BEGIN {
 
index 1dc1ed2015aeac85d4f1f0fa9c498d90aa67125c..9279ff452c2d8a516cfbd912b423fa6f6105497a 100644 (file)
@@ -12,7 +12,7 @@
 package Perl::Tidy::LineBuffer;
 use strict;
 use warnings;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 sub AUTOLOAD {
 
index 079258a620b91784d41633aa2356ca3f27da6b76..18f5c64ab659e4481d9424fb048f3a5594da6e5e 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSink;
 use strict;
 use warnings;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 sub AUTOLOAD {
 
index b442e97df2573e1c9b564795ddc4c3b7074ad011..2fff097c226fb7f08048252d6e25be741a82b3fc 100644 (file)
@@ -9,7 +9,7 @@ package Perl::Tidy::LineSource;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 use constant DEVEL_MODE => 0;
 
index e195ae4615ea73ded44fb27fde5081ce08fc3fcc..55bd35639e9d0d46a45831e82e608a64ca1e5f22 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::Logger;
 use strict;
 use warnings;
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 use English qw( -no_match_vars );
 
 use constant DEVEL_MODE   => 0;
index 90ec83d9cd9bd2ac3d227580d98506d7f4de9903..157490f2b4f6f660c44507cbb0fa0dfcfb7a8331 100644 (file)
@@ -23,7 +23,7 @@ use strict;
 use warnings;
 use English qw( -no_match_vars );
 
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 use Perl::Tidy::LineBuffer;
 use Carp;
index 29c631f5abc0fdf82791ebb6e7b7f1fa91722536..09f3c20e6b405ebd478db896ba0ba0fd5d271ec2 100644 (file)
@@ -3,7 +3,7 @@ use strict;
 use warnings;
 use Carp;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 use Perl::Tidy::VerticalAligner::Alignment;
 use Perl::Tidy::VerticalAligner::Line;
 
index 9cdd15c6cf29d7bcfdfe7398a6439389f18d9f48..70d6d334af74358bfbef33e1458b1778ac43099f 100644 (file)
@@ -10,7 +10,7 @@ use warnings;
 
 { #<<< A non-indenting brace
 
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 sub new {
     my ( $class, $rarg ) = @_;
index c4924b73394e6c085607a40d6a4aba024d82fe7c..c35dead7a9bf9a0d838895d8fc5297c71576330f 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::VerticalAligner::Line;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20230309.01';
+our $VERSION = '20230309.02';
 
 sub AUTOLOAD {