]> git.donarmstrong.com Git - perltidy.git/commitdiff
updates for next release, v20200619
authorSteve Hancock <perltidy@users.sourceforge.net>
Thu, 18 Jun 2020 15:27:31 +0000 (08:27 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Thu, 18 Jun 2020 15:27:31 +0000 (08:27 -0700)
26 files changed:
CHANGES.md
MANIFEST
MANIFEST.SKIP
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 28d4f9f6977a8d47a98d67bfc3dccf33dd0764dd..0c03a486e6fb28933647a33c8409fbdf4f6769c1 100644 (file)
@@ -1,6 +1,6 @@
 # Perltidy Change Log
 
-## 2020 01 10.01
+## 2020 06 19
 
     - Added support for Switch::Plain syntax, issue git #31.
 
 
     - Added --character-encoding=guess or -guess to have perltidy guess
       if a file (or other input stream) is encoded as -utf8 or some 
-      older single-byte encoding. This is useful when processing a mixture 
-      of file types, such as utf8 and latin-1.  
+      other single-byte encoding. This is useful when processing a mixture 
+      of file types, such as utf8 and latin-1.
 
       Please Note: The default encoding has been set to be 'guess'
-      instead of 'none'. I do not like to change defaults, but this seems like
-      the best choice, since it should make perltidy work properly with both
+      instead of 'none'. This seems like the best default, since 
+      it allows perltidy work properly with both
       utf8 files and older latin-1 files.  The guess mode uses Encode::Guess,
       which is included in standard perl distributions, and only tries to 
       guess if a file is utf8 or not, never any other encoding.  If the guess is 
       utf8, and if the file successfully decodes as utf8, then it the encoding 
-      is assumed to be utf8.  Otherwise, no encoding is assumed.  I have done
-      extensive testing and have not detected any problems with this 
-      rather conservative guess method, so I think it is a good default. 
+      is assumed to be utf8.  Otherwise, no encoding is assumed. 
       If you do not want to use this new default guess mode, or have a 
       problem with it, you can set --character-encoding=none (the previous 
       default) or --character-encoding=utf8 (if you deal with utf8 files).
 
     - Specific encodings of input files other than utf8 may now be given, for
-      example --character-encoding=euc-jp.  
+      example --character-encoding=euc-jp.
 
     - Fix for git#22, Preserve function signature on a single line. An
       unwanted line break was being introduced when a closing signature paren
index 015ced2d7eca83c32ebeb2da1f75bbe7f048f43b..2cebfab33f2f3e0e9f5d5e77931b1f49e5891899 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -23,7 +23,6 @@ examples/lextest
 examples/perlcomment.pl
 examples/perllinetype.pl
 examples/perlmask.pl
-examples/perltidy.DEBUG
 examples/perltidy_okw.pl
 examples/perltidyrc_dump.pl
 examples/perlxmltok.pl
index 34c51be2539023a75a9f7edbcf5db0196a892057..883dc63e16774d80e934e2013d134bbc3d98885c 100644 (file)
@@ -105,9 +105,10 @@ _config.yml
 # any zip files
 \.zip$
 
-# Perl::Tidy error, log and tidy files
-\bperltidy\.ERR
-\bperltidy\.LOG
+# any Perl::Tidy error, log and tidy files
+\.ERR$
+\.LOG$
+\.DEBUG$
 
 # The temporary combined perltidy.pl made by pm2pl
 \bperltidy-.*\.pl
index 87cb3d4e0818388bde482037d85b7ebfa1be531b..4fa0e8e93e2ca65ab8772f3f8f13fdac4c1b0186 100755 (executable)
@@ -4052,7 +4052,7 @@ The perltidy binary uses the Perl::Tidy module and is installed when that module
 
 =head1 VERSION
 
-This man page documents perltidy version 20200110.01
+This man page documents perltidy version 20200619
 
 =head1 BUG REPORTS
 
index 22da94786eb7d35c1df71c7ecc778153e2dc7d76..4149d5f95717156ccd0e65a8047894b80e861f95 100644 (file)
@@ -1,8 +1,10 @@
 <h1>Perltidy Change Log</h1>
 
-<h2>2020 01 10.01</h2>
+<h2>2020 06 19</h2>
 
-<pre><code>- Fixed minor problem where trailing 'unless' clauses were not 
+<pre><code>- Added support for Switch::Plain syntax, issue git #31.
+
+- Fixed minor problem where trailing 'unless' clauses were not 
   getting vertically aligned.
 
 - Added a parameter --logical-padding or -lop to allow logical padding
 
 - Added --character-encoding=guess or -guess to have perltidy guess
   if a file (or other input stream) is encoded as -utf8 or some 
-  older single-byte encoding. This is useful when processing a mixture 
-  of file types, such as utf8 and latin-1.  
+  other single-byte encoding. This is useful when processing a mixture 
+  of file types, such as utf8 and latin-1.
 
   Please Note: The default encoding has been set to be 'guess'
-  instead of 'none'. I do not like to change defaults, but this seems like
-  the best choice, since it should make perltidy work properly with both
+  instead of 'none'. This seems like the best default, since 
+  it allows perltidy work properly with both
   utf8 files and older latin-1 files.  The guess mode uses Encode::Guess,
   which is included in standard perl distributions, and only tries to 
   guess if a file is utf8 or not, never any other encoding.  If the guess is 
   utf8, and if the file successfully decodes as utf8, then it the encoding 
-  is assumed to be utf8.  Otherwise, no encoding is assumed.  I have done
-  extensive testing and have not detected any problems with this 
-  rather conservative guess method, so I think it is a good default. 
+  is assumed to be utf8.  Otherwise, no encoding is assumed. 
   If you do not want to use this new default guess mode, or have a 
   problem with it, you can set --character-encoding=none (the previous 
   default) or --character-encoding=utf8 (if you deal with utf8 files).
 
 - Specific encodings of input files other than utf8 may now be given, for
-  example --character-encoding=euc-jp.  
+  example --character-encoding=euc-jp.
 
 - Fix for git#22, Preserve function signature on a single line. An
   unwanted line break was being introduced when a closing signature paren
index 00cdf7d4830a8ad5fd02bdcd7b9fc9247b4da9f1..c3501382f55eb33fd0d1d6d007899fe85ba81076 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents Perl::Tidy version 20200110.01</p>
+<p>This man page documents Perl::Tidy version 20200619</p>
 
 <h1 id="LICENSE">LICENSE</h1>
 
index 75322a6ff387bb766f1968ec05b087768a69a1a5..91e6b0f1844364951db2418d388acfdb66dde265 100644 (file)
         $self-&gt;balance( $self-&gt;balance + $amount );
     }</code></pre>
 
+<p>For one of the extensions, module Switch::Plain, colons are marked as labels. If you use this module, you may want to also use the <b>--nooutdent-labels</b> flag to prevent lines such as &#39;default:&#39; from being outdented.</p>
+
 <p>This flag is enabled by default but it can be deactivated with <b>-nxs</b>. Probably the only reason to deactivate this flag is to generate more diagnostic messages when debugging a script.</p>
 
 </dd>
 
 <p>The value given to <b>-ci</b> is also used by some commands when a small space is required. Examples are commands for outdenting labels, <b>-ola</b>, and control keywords, <b>-okw</b>.</p>
 
-<p>When default values are not used, it is suggested that the value <b>n</b> given with <b>-ci=n</b> be no more than about one-half of the number of spaces assigned to a full indentation level on the <b>-i=n</b> command.</p>
+<p>When default values are not used, it is highly recommended that the value <b>n</b> given with <b>-ci=n</b> be no more than about one-half of the number of spaces assigned to a full indentation level on the <b>-i=n</b> command. The reason is that discontinuities in the definition and control of continuation indentation arise in complex code, and this rule helps to smooth out these discontinuities.</p>
 
 </dd>
 <dt id="sil-n---starting-indentation-level-n"><b>-sil=n</b> <b>--starting-indentation-level=n</b></dt>
 <dt id="Note:-Perltidy-does-always-follow-whitespace-controls">Note: Perltidy does always follow whitespace controls</dt>
 <dd>
 
-<p>The various parameters controlling whitespace within a program are requests which perltidy follows as well as possible, but there are a number of situations where changing whitespace could change program behavior and is not done. Examples are whitespace around bareword symbols and possible filehandles. For example, consider the problem of formatting the following subroutine:</p>
+<p>The various parameters controlling whitespace within a program are requests which perltidy follows as well as possible, but there are a number of situations where changing whitespace could change program behavior and is not done. Some of these are obvious; for example, we should not remove the space between the two plus symbols in &#39;$x+ +$y&#39; to avoid creating a &#39;++&#39; operator. Some are more subtle and involve the whitespace around bareword symbols and locations of possible filehandles. For example, consider the problem of formatting the following subroutine:</p>
 
 <pre><code>   sub print_div {
       my ($x,$y)=@_;
        print $x /$y;
    }</code></pre>
 
-<p>If formatted in this way, the program will not run (at least with recent versions of perl) because the / is assumed to start a quote. In a complex program, there might happen to be a / which terminates the multiline quote without a syntax error, allowing the program to run, but incorrectly.</p>
+<p>If formatted in this way, the program will not run (at least with recent versions of perl) because the $x is taken to be a filehandle and / is assumed to start a quote. In a complex program, there might happen to be a / which terminates the multiline quote without a syntax error, allowing the program to run, but incorrectly.</p>
 
-<p>Related issues arise with other binary operator symbols, such as + and -, and in older versions of perl there could be problems with ternary operators. So to avoid changing program behavior, perltidy has the simple rule that whitespace around possible filehandles is left unchanged. Likewise, whitespace around barewords is left unchanged.</p>
+<p>Related issues arise with other binary operator symbols, such as + and -, and in older versions of perl there could be problems with ternary operators. So to avoid changing program behavior, perltidy has the simple rule that whitespace around possible filehandles is left unchanged. Likewise, whitespace around barewords is left unchanged. The reason is that if the barewords are defined in other modules, or in code that has not even been written yet, perltidy will not have seen their prototypes and must treat them cautiously.</p>
 
 </dd>
 <dt id="Space-between-specific-keywords-and-opening-paren">Space between specific keywords and opening paren</dt>
 
 <p>When an opening paren follows a Perl keyword, no space is introduced after the keyword, unless it is (by default) one of these:</p>
 
-<pre><code>   my local our and or eq ne if else elsif until unless 
+<pre><code>   my local our and or xor eq ne if else elsif until unless 
    while for foreach return switch case given when</code></pre>
 
 <p>These defaults can be modified with two commands:</p>
 
 <h2 id="Controlling-List-Formatting">Controlling List Formatting</h2>
 
-<p>Perltidy attempts to format lists of comma-separated values in tables which look good. Its default algorithms usually work well, but sometimes parameters available to control list formatting. In this case, there are several methods available to control list formatting.</p>
+<p>Perltidy attempts to format lists of comma-separated values in tables which look good. Its default algorithms usually work well, but sometimes they don&#39;t. In this case, there are several methods available to control list formatting.</p>
 
 <p>A very simple way to prevent perltidy from changing the line breaks within a comma-separated list of values is to insert a blank line, comment, or side-comment anywhere between the opening and closing parens (or braces or brackets). This causes perltidy to skip over its list formatting logic. (The reason is that any of these items put a constraint on line breaks, and perltidy needs complete control over line breaks within a container to adjust a list layout). For example, let us consider</p>
 
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents perltidy version 20200110.01</p>
+<p>This man page documents perltidy version 20200619</p>
 
 <h1 id="BUG-REPORTS">BUG REPORTS</h1>
 
index 96b7710bf00ddd410648c6a15fce19f79c7b26dc..004bcd7b2d16bb175de3eae57660b10f9a029f89 100644 (file)
@@ -110,7 +110,7 @@ BEGIN {
     # Release version must be bumped, and it is probably past time for a
     # release anyway.
 
-    $VERSION = '20200110.01';
+    $VERSION = '20200619';
 }
 
 sub streamhandle {
index 803912a2176b11cffb2ff2fa88e88cd7ca113fc1..f90ad0ee36524583e053c10121b9dc05fd6073de 100644 (file)
@@ -432,7 +432,7 @@ The module 'Perl::Tidy' comes with a binary 'perltidy' which is installed when t
 
 =head1 VERSION
 
-This man page documents Perl::Tidy version 20200110.01
+This man page documents Perl::Tidy version 20200619
 
 =head1 LICENSE
 
index 74ec61239e8e61cad2d0af37939842f4f0db53c2..70bb0164bed300a68df67db70e98bdd6c2f9c0bb 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Debugger;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
 
index ab2d645c074a51b5a018cefb66a4a23e48546835..110c737642ec56505f4ae2aaa9ecff84fa3a776a 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::DevNull;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 sub new   { my $self = shift; return bless {}, $self }
 sub print { return }
 sub close { return }
index b0fd5d247c3155677cf8665ff446ad7e15c737eb..495fd4ab36ff1fc6d1fdb545286eb09babd00fc4 100644 (file)
@@ -20,7 +20,7 @@
 package Perl::Tidy::Diagnostics;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
 
index 943cefe543a5dca884f6234b5d2bb38da98be3ca..e5c6eab6bd6b1f6e885e0bc0d8acdf3fb09807d2 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::FileWriter;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 # Maximum number of little messages; probably need not be changed.
 my $MAX_NAG_MESSAGES = 6;
index ef1fa7750c9118d44ff690c91a02da09834f8e62..c865d98971f951ab59c5fa78d310edce4aed60ae 100644 (file)
@@ -12,7 +12,7 @@ package Perl::Tidy::Formatter;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 # The Tokenizer will be loaded with the Formatter
 ##use Perl::Tidy::Tokenizer;    # for is_keyword()
@@ -2230,9 +2230,9 @@ sub set_whitespace_flags {
         }
         elsif ( $type eq 'k' ) {
 
-           # Keywords 'for', 'foreach' are special cases for -kpit since the
-           # opening paren does not always immediately follow the keyword. So
-           # we have to search forward for the paren in this case.  I have
+            # Keywords 'for', 'foreach' are special cases for -kpit since the
+            # opening paren does not always immediately follow the keyword. So
+            # we have to search forward for the paren in this case.  I have
             # limited the search to 10 tokens ahead, just in case somebody
             # has a big file and no opening paren.  This should be enough for
             # all normal code.
@@ -9411,10 +9411,10 @@ sub pad_token {
                 # token
                 if ( $pad_spaces < 0 ) {
 
-                   # Deactivated for -kpit due to conflict. This block deletes
-                   # a space in an attempt to improve alignment in some cases,
-                   # but it may conflict with user spacing requests.  For now
-                   # it is just deactivated if the -kpit option is used.
+                    # Deactivated for -kpit due to conflict. This block deletes
+                    # a space in an attempt to improve alignment in some cases,
+                    # but it may conflict with user spacing requests.  For now
+                    # it is just deactivated if the -kpit option is used.
                     if ( $pad_spaces == -1 ) {
                         if (   $ipad > $ibeg
                             && $types_to_go[ $ipad - 1 ] eq 'b'
index cc2419a123919057c4fd4637774eef963076408e..ac432c7b9e9e727c8a94e65beba47caa6c3494ca 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::HtmlWriter;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 use File::Basename;
 
index 460c00b53cad24625cfe49c2799ecee4bf03b026..00761316cea80955aada0736e5aa2bf614df19d5 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
     my ( $package, $rscalar, $mode ) = @_;
index fe3a283a76ef51ee0c55c383fb0352d7df98cfdc..873e28cc7421493512a14db5bedccddc93d4b230 100644 (file)
@@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
     my ( $package, $rarray, $mode ) = @_;
index dca3473b09641c7d57cab27d6f5342937171233c..36ab7b68ace29aeeabc8df20d27e86311894277f 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::IndentationItem;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
 
index 8b9efba904eeb610a96f1ff3b6a9db164a852b32..7ff88408f8928b2a2a32d3c6fd53adb196855e24 100644 (file)
@@ -12,7 +12,7 @@
 package Perl::Tidy::LineBuffer;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
 
index bdd899d7638a1c65a78666594f7decba887a6621..6305599db3de05dd14bfbc76e3f9f8e9f4970c6a 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSink;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
 
index 15cc2acac71ca0d75004bd3add86823cce3162a1..f44382a416d5b9d1f8b07d52ab11aaaac0eab4c7 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSource;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
 
index df9b5436dffcc262fe087941b4ef060453ed33d2..446a8926c3c1e9b1587835091b41e6695ef049cc 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Logger;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 sub new {
 
index 872a37e75efaef8fea2a9e2d0e7c01b9f9cf946e..697913d5843c85053b610346c85328961afb4b89 100644 (file)
@@ -21,7 +21,7 @@
 package Perl::Tidy::Tokenizer;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 use Perl::Tidy::LineBuffer;
 
index 723d3bb4a4c791edf86731cdb03678e3a0eaea86..f4367cf5998939c6d6200226dc2f92d257868aa2 100644 (file)
@@ -1,7 +1,7 @@
 package Perl::Tidy::VerticalAligner;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 use Perl::Tidy::VerticalAligner::Alignment;
 use Perl::Tidy::VerticalAligner::Line;
@@ -2029,7 +2029,7 @@ sub my_flush_comment {
     # look for excessively long lines
     my $max_excess = 0;
     foreach my $item (@group_lines) {
-        my ($str, $str_len) = @{$item}; 
+        my ( $str, $str_len ) = @{$item};
         my $excess =
           $str_len +
           $leading_space_count -
@@ -2337,7 +2337,7 @@ EOM
     my $k         = 0;
     my $jdel_next = $ridel->[$k];
 
-    if ( $jdel_next < 0 ) { return }  # shouldnt happen
+    if ( $jdel_next < 0 ) { return }    # shouldnt happen
     my $pattern      = $rpatterns_old->[0];
     my $field        = $rfields_old->[0];
     my $field_length = $rfield_lengths_old->[0];
@@ -2409,8 +2409,8 @@ EOM
         my ( $raw_tok, $lev, $tag, $tok_count ) =
           decode_alignment_token($new_list_type);
 
-       # But for lines with leading commas, we will require that they be
-       # tagged before converting a line from non-list to a list.
+        # But for lines with leading commas, we will require that they be
+        # tagged before converting a line from non-list to a list.
         if ($tag) {
             for ( my $i = 1 ; $i < @{$rtokens_new} - 1 ; $i++ ) {
                 if ( $rtokens_new->[$i] !~ /^(,|=>)/ ) {
@@ -2654,8 +2654,8 @@ sub delete_unmatched_tokens {
     foreach my $line ( @{$rnew_lines} ) {
         my $rhash   = {};
         my $rtokens = $line->get_rtokens();
-        if ( !$saw_list_type && $line->get_list_type() ) { $saw_list_type = 1}
-        my $i       = 0;
+        if ( !$saw_list_type && $line->get_list_type() ) { $saw_list_type = 1 }
+        my $i = 0;
         my $i_eq;
         my $lev_min;
         foreach my $tok ( @{$rtokens} ) {
@@ -2833,7 +2833,7 @@ sub delete_unmatched_tokens {
     return;
 }
 
-{    # fix_ragged_matches
+{        # fix_ragged_matches
 
     my %is_comma_or_comment;
     my $BLOCK_MERGE_RATIO;
@@ -2845,13 +2845,13 @@ sub delete_unmatched_tokens {
         @q = ( ',', '=>', '#' );
         @is_comma_or_comment{@q} = (1) x scalar(@q);
 
-       # This fraction controls merges. Only merge a long block into a shorter
-       # block if the ratio of the number of lines is less than this ratio.
-       # The idea is to avoid merging away a significant block that would
-       # otherwise be aligned.  This is not a critical parameter.  Some
-       # testing showed that it is best between about 0.3 and 0.5.  The
-       # original test snippet, git25, worked best with a value >=0.35. 
-        $BLOCK_MERGE_RATIO = 0.5; 
+        # This fraction controls merges. Only merge a long block into a shorter
+        # block if the ratio of the number of lines is less than this ratio.
+        # The idea is to avoid merging away a significant block that would
+        # otherwise be aligned.  This is not a critical parameter.  Some
+        # testing showed that it is best between about 0.3 and 0.5.  The
+        # original test snippet, git25, worked best with a value >=0.35.
+        $BLOCK_MERGE_RATIO = 0.5;
 
         # Debug flag
         $EXPLAIN = 0;
@@ -2866,7 +2866,7 @@ sub delete_unmatched_tokens {
         # which can be improved by adjusting alignments.
 
         # TODO: This version only treats lists.  It might be generalized
-        # to handle more types of matches. 
+        # to handle more types of matches.
 
         #########################################################
         # Step 1. Start by scanning the lines and collecting info
@@ -2893,7 +2893,7 @@ sub delete_unmatched_tokens {
             my $list_type = $line->get_list_type();
 
             # No matches if there is a group ending flag set between these lines
-            my $end_group = ( $jj_m >= 0 && $rlines->[$jj_m]->{_end_group} ); 
+            my $end_group = ( $jj_m >= 0 && $rlines->[$jj_m]->{_end_group} );
 
             # Also skip past a non-list line; we are working on pure lists here
             if ( $end_group || !$list_type ) {
@@ -2944,7 +2944,7 @@ sub delete_unmatched_tokens {
         # imax_match = index of maximum alignment token for lines in this batch.
         #    This value applies to matches between all lines j=jbeg to jend and
         #    j=jbeg-1 to jend-1.  In other words, the value for a pair of lines
-        #    is stored with the line with the higher index. 
+        #    is stored with the line with the higher index.
         my $imatch      = -10;
         my $j_last_line = @{$rlines} - 1;
         my %counts;
@@ -3126,10 +3126,10 @@ sub delete_unmatched_tokens {
 
                 # Now delete the unused alignment tokens
 
-                # NOTE: We are currently only working on lists, so we can allow
-                # lines to be promoted as lists.  But if this coding is generalized
-                # this flag may have to be adjusted to handle or non-lists.
-                my $new_list_ok = 1;  
+             # NOTE: We are currently only working on lists, so we can allow
+             # lines to be promoted as lists.  But if this coding is generalized
+             # this flag may have to be adjusted to handle or non-lists.
+                my $new_list_ok = 1;
 
                 if ( $imax_match_j < $imax ) {
                     my @idel = ( $imax_match_j + 1 .. $imax );
@@ -3141,7 +3141,7 @@ sub delete_unmatched_tokens {
     }
 }
 
-{        # decide_if_aligned_pair
+{    # decide_if_aligned_pair
 
     my %is_if_or;
     my %is_assignment;
index 81233fbd502b4237a347a54009ec08a471ef7345..3c5a7ee112f37c02d1c66a6b009027d094d17311 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::VerticalAligner::Alignment;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 {
 
index c61345c260ad369d7d0ef557a8468f8a6e0483be..46aeb2782cd54ab9e579d0f7deb495d952b2b969 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::VerticalAligner::Line;
 use strict;
 use warnings;
-our $VERSION = '20200110.01';
+our $VERSION = '20200619';
 
 {