Skip to content

Commit

Permalink
p5-Perl-Tidy: update to 20200907.
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
0-wiz-0 committed Sep 13, 2020
1 parent ed7b055 commit 9d71acc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions devel/p5-Perl-Tidy/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.43 2020/09/07 09:50:47 wiz Exp $
# $NetBSD: Makefile,v 1.44 2020/09/13 07:54:02 wiz Exp $

DISTNAME= Perl-Tidy-20200822
DISTNAME= Perl-Tidy-20200907
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Perl/}
Expand Down
10 changes: 5 additions & 5 deletions devel/p5-Perl-Tidy/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.25 2020/09/07 09:50:47 wiz Exp $
$NetBSD: distinfo,v 1.26 2020/09/13 07:54:02 wiz Exp $

SHA1 (Perl-Tidy-20200822.tar.gz) = 37c48d7acfb36eab5fdc8f39a69cf74c734cb332
RMD160 (Perl-Tidy-20200822.tar.gz) = 110900bc0797c34cf0982586f43f2e11e099f843
SHA512 (Perl-Tidy-20200822.tar.gz) = 9fef4b27ea3077720a534eaccfb3895e75600d486822d390f213e4edc168293a657f11292836942e4dc522d1593b5199cd6a46bb6a8d870152cccf57964762ef
Size (Perl-Tidy-20200822.tar.gz) = 657209 bytes
SHA1 (Perl-Tidy-20200907.tar.gz) = 6c7fcda3a6dd2bcc15cb82168d108503d5d2b00c
RMD160 (Perl-Tidy-20200907.tar.gz) = 7f3ec3f4788ec50a260a2d99b1b608e5101d400e
SHA512 (Perl-Tidy-20200907.tar.gz) = 047a724b8fabc32ab2db3b3ba7f64fb244de4dbb55eb2c0df7cd4991876791c9e6bff238662f8c103ea180a7231f393211fe1649456b7c0b5d62fac14c349f37
Size (Perl-Tidy-20200907.tar.gz) = 666105 bytes

0 comments on commit 9d71acc

Please sign in to comment.