From: Steve Hancock Date: Tue, 8 Sep 2020 18:21:42 +0000 (-0700) Subject: do not allow -wc and -lp together, can cause bugs X-Git-Tag: 20200907.01~34 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=710378129ff9f892f76b0b94fdd960d9a60fba2e;p=perltidy.git do not allow -wc and -lp together, can cause bugs --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 512a7425..3c8bd757 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -6002,6 +6002,13 @@ with these flags. EOM $rOpts->{'line-up-parentheses'} = 0; } + + if ( $rOpts->{'whitespace-cycle'} ) { + Warn(<{'whitespace-cycle'} = 0; + } } # At present, tabs are not compatible with the line-up-parentheses style