# Perltidy Change Log
-## 2018 11 20.01
+## 2019 06 01
- rt #128477: Prevent inconsistent owner/group and setuid/setgid bits.
In the -b (--backup-and-modify-in-place) mode, an attempt is made to set ownership
- of the output file equal to the input file, if they differ.
+ of the output file equal to the input file, if they differ.
In all cases, if the final output file ownership differs from input file, any setuid/setgid bits are cleared.
- - added option -bom (--break-at-old-method-breakpoints) by
- merrillymeredith which preserves breakpoints of method chains
+ - Added option -bom (--break-at-old-method-breakpoints) by
+ merrillymeredith which preserves breakpoints of method chains. Modified to also handle a cuddled call style.
- - merged patch to fix Windows EOL translation error with UTF-8 written by
+ - Merged patch to fix Windows EOL translation error with UTF-8 written by
Ron Ivy. This update prevents automatic conversion to 'DOS' CRLF line
endings.
n=2 means always add semicolons in one-line blocks
The current behavior corresponds to the default n=1.
- - RT #128216, very minor update to prevent inserting unwanted blank line at
+ - RT #128216, Minor update to prevent inserting unwanted blank line at
indentation level change. This should not change existing scripts.
- RT #81852: Improved indentation when quoted word (qw) lists are
sequences of selected keywords. This can be activated with the -kgb*
series of parameters described in the manual.
- - Rewrote vertical algnment module. It is much better at finding
+ - Rewrote vertical algnment module. It is better at finding
patterns in complex code. For example,
OLD:
- RT #118553, "leave only one newline at end of file". This option was not
added because of undesirable side effects, but a new filter script
- was added which can do this, "examples/delete_ending_blank_lines.pl".
+ was added which can do this, "examples/delete_ending_blank_lines.pl".
## 2018 11 20
=head1 VERSION
-This man page documents perltidy version 20181120.01
+This man page documents perltidy version 20190601
=head1 BUG REPORTS
<h1>Perltidy Change Log</h1>
-<h2>2018 11 20.01</h2>
+<h2>2019 06 01</h2>
<pre><code>- rt #128477: Prevent inconsistent owner/group and setuid/setgid bits.
In the -b (--backup-and-modify-in-place) mode, an attempt is made to set ownership
- of the output file equal to the input file, if they differ.
+ of the output file equal to the input file, if they differ.
In all cases, if the final output file ownership differs from input file, any setuid/setgid bits are cleared.
-- added option -bom (--break-at-old-method-breakpoints) by
- merrillymeredith which preserves breakpoints of method chains
+- Added option -bom (--break-at-old-method-breakpoints) by
+ merrillymeredith which preserves breakpoints of method chains. Modified to also handle a cuddled call style.
-- merged patch to fix Windows EOL translation error with UTF-8 written by
+- Merged patch to fix Windows EOL translation error with UTF-8 written by
Ron Ivy. This update prevents automatic conversion to 'DOS' CRLF line
endings.
n=2 means always add semicolons in one-line blocks
The current behavior corresponds to the default n=1.
-- RT #128216, very minor update to prevent inserting unwanted blank line at
+- RT #128216, Minor update to prevent inserting unwanted blank line at
indentation level change. This should not change existing scripts.
- RT #81852: Improved indentation when quoted word (qw) lists are
sequences of selected keywords. This can be activated with the -kgb*
series of parameters described in the manual.
-- Rewrote vertical algnment module. It is much better at finding
+- Rewrote vertical algnment module. It is better at finding
patterns in complex code. For example,
OLD:
<h1 id="VERSION">VERSION</h1>
-<p>This man page documents Perl::Tidy version 20181120.01</p>
+<p>This man page documents Perl::Tidy version 20190601</p>
<h1 id="LICENSE">LICENSE</h1>
<h1 id="VERSION">VERSION</h1>
-<p>This man page documents perltidy version 20181120.01</p>
+<p>This man page documents perltidy version 20190601</p>
<h1 id="BUG-REPORTS">BUG REPORTS</h1>
# Release version must be bumped, and it is probably past time for a
# release anyway.
- $VERSION = '20181120.01';
+ $VERSION = '20190601';
}
sub streamhandle {
}
}
- # Make the output file writable unless we are in -b mode.
- # The issue is that perltidy currently does not unlink
- # existing output files before writing to them, so if an
- # existing output file (like xxxxx.tdy) is read-only then
- # perltidy will fail.
+ # Make the output file writable unless we are in -b mode.
+ # The reason is that perltidy does not unlink existing
+ # output files before writing to them, for safety, so if an
+ # existing output file is marked not writable then perltidy
+ # will stop. This can prevent a disaster for a user who
+ # accidentally enters "-o important_data", but it also
+ # means that perltidy may fail when rerun with its default
+ # output file unless it marks its own output files
+ # writable. The alternative, of always unlinking the
+ # designated output file, is unsafe, except in -b mode,
+ # where there is an assumption that a previous backup can
+ # be unlinked even if not writable.
if ( !$in_place_modify ) {
$output_file_permissions |= oct(600);
}
=head1 VERSION
-This man page documents Perl::Tidy version 20181120.01
+This man page documents Perl::Tidy version 20190601
=head1 LICENSE
package Perl::Tidy::Debugger;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
package Perl::Tidy::DevNull;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new { my $self = shift; return bless {}, $self }
sub print { return }
sub close { return }
package Perl::Tidy::Diagnostics;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
package Perl::Tidy::FileWriter;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
# Maximum number of little messages; probably need not be changed.
my $MAX_NAG_MESSAGES = 6;
use strict;
use warnings;
use Carp;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
# The Tokenizer will be loaded with the Formatter
##use Perl::Tidy::Tokenizer; # for is_keyword()
package Perl::Tidy::HtmlWriter;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
use File::Basename;
use strict;
use warnings;
use Carp;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
my ( $package, $rscalar, $mode ) = @_;
use strict;
use warnings;
use Carp;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
my ( $package, $rarray, $mode ) = @_;
package Perl::Tidy::IndentationItem;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
package Perl::Tidy::LineBuffer;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
package Perl::Tidy::LineSink;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
package Perl::Tidy::LineSource;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
package Perl::Tidy::Logger;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
sub new {
package Perl::Tidy::Tokenizer;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
use Perl::Tidy::LineBuffer;
package Perl::Tidy::VerticalAligner;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
use Perl::Tidy::VerticalAligner::Alignment;
use Perl::Tidy::VerticalAligner::Line;
package Perl::Tidy::VerticalAligner::Alignment;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
{
package Perl::Tidy::VerticalAligner::Line;
use strict;
use warnings;
-our $VERSION = '20181120.01';
+our $VERSION = '20190601';
{