"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "CHANGES.md" between
Perl-Tidy-20191203.tar.gz and Perl-Tidy-20200110.tar.gz

About: Perltidy is a Perl script indenter and reformatter (beautifier).

CHANGES.md  (Perl-Tidy-20191203):CHANGES.md  (Perl-Tidy-20200110)
# Perltidy Change Log # Perltidy Change Log
## 2020 01 10
- This release adds a flag to control the feature RT#130394 (allow short nes
ted blocks)
introduced in the previous release. Unfortunately that feature breaks
RPerl installations, so a control flag has been introduced and that featur
e 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 DEFA
ULT]
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 t
he parameter -olbn=1.
- Fixed issue RT#131288: parse error for un-prototyped constant function wit
hout 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 ins
talled with
'cpanm Perl::Tidy'
## 2019 12 03 ## 2019 12 03
- Fixed issue RT#131115: -bli option not working correctly. - Fixed issue RT#131115: -bli option not working correctly.
Closing braces were not indented in some cases due to a glitch Closing braces were not indented in some cases due to a glitch
introduced in version 20181120. introduced in version 20181120.
- Fixed issue RT#130394: Allow short nested blocks. Given the following - Fixed issue RT#130394: Allow short nested blocks. Given the following
$factorial = sub { reduce { $a * $b } 1 .. 11 }; $factorial = sub { reduce { $a * $b } 1 .. 11 };
 End of changes. 1 change blocks. 
0 lines changed or deleted 40 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)