Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (5h)  pkgsrc-2024Q1 (10d)  pkgsrc-2023Q4 (57d)  pkgsrc-2023Q2 (90d)  pkgsrc-2023Q3 (169d) 

2024-05-28 09:41:40 UTC Now

2020-03-25 11:18:31 UTC MAIN commitmail json YAML

p5-Perl-Tidy: Update to 20200110

## 2020 01 10

- This release adds a flag to control the feature RT#130394 (allow short nested blocks)
  introduced in the previous release.  Unfortunately that feature breaks
  RPerl installations, so a control flag has been introduced and that feature is now
  off by default.  The flag is:

  --one-line-block-nesting=n, or -olbn=n, where n is an integer as follows:

  -olbn=0 break nested one-line blocks into multiple lines [new DEFAULT]
  -olbn=1 stable; keep existing nested-one line blocks intact [previous DEFAULT]

  For example, consider this input line:

    foreach (@list) { if ($_ eq $asked_for) { last } ++$found }

  The new default behavior (-olbn=0), and behavior prior to version 20191203, is to break it into multiple lines:

    foreach (@list) {
if ( $_ eq $asked_for ) { last }
++$found;
    }

  To keep nested one-line blocks such as this on a single line you can add the parameter -olbn=1.

- Fixed issue RT#131288: parse error for un-prototyped constant function without parenthesized
  call parameters followed by ternary.

- Fixed issue RT#131360, installation documentation.  Added a note that the binary
  'perltidy' comes with the Perl::Tidy module. They can both normally be installed with
  'cpanm Perl::Tidy'

(nia)