"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/ChangeLog.html" between
Perl-Tidy-20191203.tar.gz and Perl-Tidy-20200110.tar.gz

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

ChangeLog.html  (Perl-Tidy-20191203):ChangeLog.html  (Perl-Tidy-20200110)
<h1>Perltidy Change Log</h1> <h1>Perltidy Change Log</h1>
<h2>2020 01 10</h2>
<pre><code>- This release adds a flag to control the feature RT#130394 (allow sh
ort 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 p
arameter -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 bina
ry
'perltidy' comes with the Perl::Tidy module. They can both normally be install
ed with
'cpanm Perl::Tidy'
</code></pre>
<h2>2019 12 03</h2> <h2>2019 12 03</h2>
<pre><code>- Fixed issue RT#131115: -bli option not working correctly. <pre><code>- 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)