]> git.donarmstrong.com Git - perltidy.git/commitdiff
add clarifying comment
authorSteve Hancock <perltidy@users.sourceforge.net>
Mon, 16 Oct 2023 13:37:53 +0000 (06:37 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Mon, 16 Oct 2023 13:37:53 +0000 (06:37 -0700)
lib/Perl/Tidy/Logger.pm

index 0af825fd2b54ab7d365fe43e2793daf698fe20db..a503145177648c72e2e651505b7ee4fe47ef0eaa 100644 (file)
@@ -173,10 +173,14 @@ use constant MAX_PRINTED_CHARS => 35;
 
 sub black_box {
     my ( $self, $line_of_tokens, $output_line_number ) = @_;
+
+    # This routine saves information comparing the indentation of input
+    # and output lines when a detailed logfile is requested.
+    # This was very useful during the initial development of perltidy.
+
     my $input_line        = $line_of_tokens->{_line_text};
     my $input_line_number = $line_of_tokens->{_line_number};
 
-    # save line information in case we have to write a logfile message
     $self->{_line_of_tokens}                = $line_of_tokens;
     $self->{_output_line_number}            = $output_line_number;
     $self->{_wrote_line_information_string} = 0;