Download Latest Version Perl-Tidy-20250711.tar.gz (1.2 MB)
Email in envelope

Get an email when there's a new version of perltidy

Home / 20200907
Name Modified Size InfoDownloads / Week
Parent folder
README.txt 2020-09-06 1.6 kB
Perl-Tidy-20200907.tar.gz 2020-09-06 666.1 kB
Perl-Tidy-20200907.zip 2020-09-06 717.7 kB
Totals: 3 Items   1.4 MB 0
## Changes from version version 2020 08 22 to version 2020 09 07

    - Fixed bug git #37, an error when the combination -scbb -csc was used.
      It occurs in perltidy versions 20200110, 20200619, and 20200822.  What happens is
      that when two consecutive lines with isolated closing braces had new side
      comments generated by the -csc parameter, a separating newline was missing.
      The resulting script will not then run, but worse, if it is reformatted with
      the same parameters then closing side comments could be overwritten and data
      lost. 

      This problem was found during automated random testing.  The parameter
      -scbb is rarely used, which is probably why this has not been reported.  Please
      upgrade your version.

    - Added parameter --non-indenting-braces, or -nib, which prevents
      code from indenting one level if it follows an opening brace marked 
      with a special side comment, '#<<<'.  For example,

                    { #<<<   a closure to contain lexical vars

                    my $var;  # this line does not indent

                    }

                    # this line cannot 'see' $var;

      This is on by default.  If your code happens to have some
      opening braces followed by '#<<<', and you
      don't want this, you can use -nnib to deactivate it. 

    - Side comment locations reset at a line ending in a level 0 open
      block, such as when a new multi-line sub begins.  This is intended to 
      help keep side comments from drifting to far to the right.
Source: README.txt, updated 2020-09-06