]> git.donarmstrong.com Git - perltidy.git/commitdiff
Added warning when -ci has to be reduced; ref rt #136415
authorSteve Hancock <perltidy@users.sourceforge.net>
Fri, 7 May 2021 14:40:27 +0000 (07:40 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Fri, 7 May 2021 14:40:27 +0000 (07:40 -0700)
lib/Perl/Tidy/Formatter.pm
local-docs/BugLog.pod

index 63c61e93da1a35c6cc4e416e3689f691fc55db15..53f96838c4c451f8c56a3b839c9b6369a1261f33 100644 (file)
@@ -1097,6 +1097,12 @@ sub check_options {
         && $rOpts->{'extended-continuation-indentation'} )
     {
         $rOpts->{'continuation-indentation'} = $rOpts->{'indent-columns'};
+        Warn(<<EOM);
+-----------------------------------------------------------------------
+Reducing the value of --continuation-indentation to the value of --indent-columns.
+This is required when -xci is used to avoid possible formatting instability.
+-----------------------------------------------------------------------
+EOM
     }
 
     if ( $rOpts->{'line-up-parentheses'} ) {
index 38015dfd7fac12ae8a44130c90bc7ea08a4f1132..07c2d90471048587c10939e2a6857aab9a7e6a0e 100644 (file)
@@ -2,6 +2,14 @@
 
 =over 4
 
+=item B<Added warning when -ci has to be reduced; ref rt #136415>
+
+In commit c16c5ee an update was made to prevent instability with -xci when
+the value of -ci exceeds -i (which is not recommended).  This update adds a
+warning message to avoid confusing the user.
+
+7 May 2021.
+
 =item B<Improve indentation of welded multiline qw quotes>
 
 Formatting of multiline qw lists with welding works best if the