]> git.donarmstrong.com Git - perltidy.git/commitdiff
preparing for release; set version to 20191207
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 1 Dec 2019 01:59:20 +0000 (17:59 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 1 Dec 2019 01:59:20 +0000 (17:59 -0800)
25 files changed:
CHANGES.md
MANIFEST
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 bda5a03fae3ed5afb67acacbbe81eae56ed4b146..d15f7c38196d71abd60a3c6a341b9ebb724839b8 100644 (file)
@@ -1,6 +1,6 @@
 # Perltidy Change Log
 
-## 2019 09 15.01
+## 2019 12 07
 
     - Fixed issue RT#131115: -bli option not working correctly.
       Closing braces were not indented in some cases due to a glitch
@@ -16,7 +16,7 @@
 
     - Implement issue RT#130640: Allow different subroutine keywords.
       Added a flag --sub-alias-list=s or -sal=s, where s is a string with
-      one or more aliases for 'sub', separated by spaces or commas.  
+      one or more aliases for 'sub', separated by spaces or commas.
       For example,
 
         perltidy -sal='method fun' 
index 78e9424a3b88f1019d724e39303b757a54fedb7a..e2d52ae6761dbc6eb7edbfc7866814111e6aaa8d 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -60,6 +60,7 @@ t/snippets12.t
 t/snippets13.t
 t/snippets14.t
 t/snippets15.t
+t/snippets16.t
 t/snippets2.t
 t/snippets3.t
 t/snippets4.t
index 34d3d32a11f6af1ee36d5cf0c54cf8f6d0ae8626..edfe383dafb9812562f130ce468660d778505db9 100755 (executable)
@@ -3807,7 +3807,7 @@ perlstyle(1), Perl::Tidy(3)
 
 =head1 VERSION
 
-This man page documents perltidy version 20190915.01
+This man page documents perltidy version 20191207
 
 =head1 BUG REPORTS
 
index 4ace19e7a6ae623e531fc96ca015855ded23c7ae..97d8c141aa63877c717ce115c775abe6747ad287 100644 (file)
@@ -1,15 +1,27 @@
 <h1>Perltidy Change Log</h1>
 
-<h2>2019 09 15.01</h2>
+<h2>2019 12 07</h2>
 
-<pre><code>- implement issue RT#130640: Allow different subroutine keywords.
+<pre><code>- Fixed issue RT#131115: -bli option not working correctly.
+  Closing braces were not indented in some cases due to a glitch
+  introduced in version 20181120.
+
+- Fixed issue RT#130394: Allow short nested blocks.  Given the following
+
+    $factorial = sub { reduce { $a * $b } 1 .. 11 };
+
+  Previous versions would always break the sub block because it
+  contains another block (the reduce block).  The fix keeps
+  short one-line blocks such as this intact.
+
+- Implement issue RT#130640: Allow different subroutine keywords.
   Added a flag --sub-alias-list=s or -sal=s, where s is a string with
-  one or more aliases for 'sub', separated by spaces or commas.  
+  one or more aliases for 'sub', separated by spaces or commas.
   For example,
 
     perltidy -sal='method fun' 
 
-  will cause the perltidy to treate the words 'method' and 'fun' to be
+  will cause the perltidy to treat the words 'method' and 'fun' to be
   treated the same as if they were 'sub'.
 
 - Added flag --space-prototype-paren=i, or -spp=i, to control spacing 
     sub usage();    # i=0 [no space]
     sub usage();    # i=1 [default; follows input]
     sub usage ();   # i=2 [space]
+
+- Fixed issue git#16, minor vertical alignment issue.
+
+- Fixed issue git#10, minor conflict of -wn and -ce
+
+- Improved some vertical alignments involving two lines.
 </code></pre>
 
 <h2>2019 09 15</h2>
index 3babc56096eca1ea0be56c80ee2a4b8e1a968471..7cfdae12c72822228e4655037ecdaa510c9e2f08 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents Perl::Tidy version 20190915.01</p>
+<p>This man page documents Perl::Tidy version 20191207</p>
 
 <h1 id="LICENSE">LICENSE</h1>
 
index 34da9faf935cb3ed82ebe928248e42fc014b64cf..9e96cf010a695f13125afa1a7d4cb8d48630c4d1 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents perltidy version 20190915.01</p>
+<p>This man page documents perltidy version 20191207</p>
 
 <h1 id="BUG-REPORTS">BUG REPORTS</h1>
 
index f0106612f00873f11af50dbe01ca7d9f0a3dfdb8..cb28c0e47c90c70666261a9f1ff5593c33a37f7d 100644 (file)
@@ -110,7 +110,7 @@ BEGIN {
     # Release version must be bumped, and it is probably past time for a
     # release anyway.
 
-    $VERSION = '20190915.01';
+    $VERSION = '20191207';
 }
 
 sub streamhandle {
index 10d0277cc1410e244b16c8e53902328dc75a8cc7..a791a1c6e77658ab9c8600d68df628cedd097528 100644 (file)
@@ -414,7 +414,7 @@ C<write_debug_entry> in Tidy.pm.
 
 =head1 VERSION
 
-This man page documents Perl::Tidy version 20190915.01
+This man page documents Perl::Tidy version 20191207
 
 =head1 LICENSE
 
index 3dc14c8fe346170b445fec072b9f2da77833734b..bf965dea13422cb9245b167c35e7282e70429db6 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Debugger;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
 
index 6d5b5df1c6b3fa04b04c1780ce313dedcb84680e..3e1c2063f29eb57a6f37eb8458c47dbf4af8f91f 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::DevNull;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 sub new   { my $self = shift; return bless {}, $self }
 sub print { return }
 sub close { return }
index 41942c1ec1ea2167fe3151d648bda9914cba455c..1485054f73581db5fb4e8d92b978a8fd465a8b86 100644 (file)
@@ -20,7 +20,7 @@
 package Perl::Tidy::Diagnostics;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
 
index 60637835c0f05aca496d7ad4ae502aa26c4570f8..0f2af6bfcb215fdaad6a397c5ed7ff1efc99837c 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::FileWriter;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 # Maximum number of little messages; probably need not be changed.
 my $MAX_NAG_MESSAGES = 6;
index 40436416ab8318d3de9ef6f9de797843668adb42..fd84ac3cd2bc86e32c604ee45de9d2d7eb2a19f6 100644 (file)
@@ -12,7 +12,7 @@ package Perl::Tidy::Formatter;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 # The Tokenizer will be loaded with the Formatter
 ##use Perl::Tidy::Tokenizer;    # for is_keyword()
@@ -3601,6 +3601,7 @@ sub map_containers {
     else {
         # ok
     }
+    return;
 }
 
 sub mark_short_nested_blocks {
@@ -6295,6 +6296,7 @@ sub make_sub_matching_pattern {
         $SUB_PATTERN    =~ s/sub/\($sub_alias_list\)/;
         $ASUB_PATTERN   =~ s/sub/\($sub_alias_list\)/;
     }
+    return;
 }
 
 sub make_bli_pattern {
index 3ab6ccdd70f74d37e88f0c97521008a9e91a138d..4c2fccff364e18232adbef62028d45f3b9479b15 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::HtmlWriter;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 use File::Basename;
 
index 20704eafe98ddcf090be66fd5c1bd1168af2bcd3..3c45adf6d693cfbdff71420878d3acce9df3c791 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
     my ( $package, $rscalar, $mode ) = @_;
index 86971bef05f805c7da73151c5e275af33c6a9b9f..a3eacb449fd7f2e675d54499f17c19c185bcda68 100644 (file)
@@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
     my ( $package, $rarray, $mode ) = @_;
index cb8875431379c5dbc79feabecf28e55ded1fdf4b..a8b5e268a56b5d97d8a660879de4d94377b12b73 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::IndentationItem;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
 
index a788c491d8a7f75ad603897734f3a7918e8a0b08..cbd3da21a79e777eeb57eb4a5f7a2fffd26f1a5b 100644 (file)
@@ -12,7 +12,7 @@
 package Perl::Tidy::LineBuffer;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
 
index 75d9be6d95ba3f9849c99384d592116bf43650e8..cb46a3ac9524e514721cacc4c73135b4c44ad345 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSink;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
 
index dfb2138256f4ab977a044e556d6ab3e48f7d1cf3..8358bcd4af0d3e28bb4e15b34fd6dee69c9a1a0f 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSource;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
 
index 719300abc4f2e51d35ed4f5e1c724a86d84848fa..bf7de09066115e34bfa218ade7e4d94848de48df 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Logger;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 sub new {
 
index cafe0d6f28064949aea42c6c1d9c9bf93f390226..5293cfa42377a2dc3a973853d233ae47a96001ad 100644 (file)
@@ -21,7 +21,7 @@
 package Perl::Tidy::Tokenizer;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 use Perl::Tidy::LineBuffer;
 
@@ -6193,7 +6193,7 @@ sub scan_identifier_do {
                 # In something like '$${' we have type '$$' (and only
                 # part of an identifier)
                 && !( $identifier =~ /\$$/ && $tok eq '{' )
-                && ( $identifier  !~ /^(sub |package )$/ )
+                && ( $identifier !~ /^(sub |package )$/ )
               )
             {
                 $type = 'i';
index c27e2eaf32534758f30abd4e7d1cc7821b5a9542..8c231ac93655e488208e0da42838814c66403a4e 100644 (file)
@@ -1,7 +1,7 @@
 package Perl::Tidy::VerticalAligner;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 use Perl::Tidy::VerticalAligner::Alignment;
 use Perl::Tidy::VerticalAligner::Line;
index 2105deaeaefda05e99f743dbc738dbe93773910b..0adbf8df6c1e2f060e72fde1636e775b43506afe 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::VerticalAligner::Alignment;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 {
 
index b0e4a4d7ef8bb88d3dca40a33213be623741af48..9cd6f23dd77960bb1a8ad7fb818e753fca923705 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::VerticalAligner::Line;
 use strict;
 use warnings;
-our $VERSION = '20190915.01';
+our $VERSION = '20191207';
 
 {