]> git.donarmstrong.com Git - perltidy.git/commitdiff
update comment
authorSteve Hancock <perltidy@users.sourceforge.net>
Thu, 18 Aug 2022 00:47:46 +0000 (17:47 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Thu, 18 Aug 2022 00:47:46 +0000 (17:47 -0700)
lib/Perl/Tidy/Formatter.pm

index eb1bd5395d6f6f15bb29a78d0c0d4aea79cb3cb2..9227cc3d9ef8e8dcbf5e0871bd728847a29b43da 100644 (file)
@@ -17592,8 +17592,12 @@ sub correct_lp_indentation {
                       get_saved_opening_indentation($align_seqno);
                     if ( defined($indent) ) {
 
-                        # FIXME: should use '1' here if no space after opening
-                        # and '2' if want space; hardwired at 1 like -gnu-style
+                        # NOTE: we could use '1' here if no space after
+                        # opening and '2' if want space; it is hardwired at 1
+                        # like -gnu-style. But it is probably best to leave
+                        # this alone because changing it would change
+                        # formatting of much existing code without any
+                        # significant benefit.
                         $actual_pos = get_spaces($indent) + $offset + 1;
                     }
                 }