]> git.donarmstrong.com Git - perltidy.git/commitdiff
update logs
authorSteve Hancock <perltidy@users.sourceforge.net>
Fri, 2 Oct 2020 13:47:55 +0000 (06:47 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Fri, 2 Oct 2020 13:47:55 +0000 (06:47 -0700)
CHANGES.md
local-docs/BugLog.pod

index 29a3b6a7cdcc6cb1a791d7d1e448b3401552d155..3cccd1f63d3dffb64653bfa65aab8f0e5904d3ef 100644 (file)
@@ -1,5 +1,8 @@
 # Perltidy Change Log
 
+    - Fix issue git #40: when using -bli a closing brace followed by a semicolon was 
+      not being indented.
+
 ## 2020 10 01
 
     - Robustness of perltidy has been significantly improved.  Updating is recommended. Continual 
index a22ff1e174c6beb469dd2270b36be618048cdad8..55dfe6422a98b8141f9c8361d147a52ca2a29c58 100644 (file)
@@ -1,3 +1,38 @@
+=head1 Issues fixed after release 20201001
+
+=item B<terminal braces not indenting correctly with -bli formatting, issue git #40>
+
+This problem is illustrated with the following snippet when run with -bli -blil='*'
+    #-bli -bli list='*'
+    try
+      {
+        die;
+      }
+    catch
+      {
+        die;
+      };    # <-- this was not indenting
+
+This was due to conflicting rules and was fixed 1 Oct 2020 in commit
+'fix issue git #40, incorrect closing brace indentation with -bli', a5aefe9.
+
+At the same time, it was noted that block types sort/map/grep and eval were not
+following -bli formatting when -blil='*' and this was fixed.  For example, with
+corrected formatting, we would have
+
+  # perltidy -bli -blil='*'
+    eval
+      {
+        my $app = App::perlbrew->new( "install-patchperl", "-q" );
+        $app->run();
+      }
+      or do
+      {
+        $error          = $@;
+        $produced_error = 1;
+      };
+
 =head1 Issues fixed after release 20200907
 
 This is a detailed log of changes since the release 20200907. All bugs were