From 96662765458634f95789bd6800b24a54d2f32153 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Fri, 13 Oct 2023 16:20:59 -0700 Subject: [PATCH] update comments --- lib/Perl/Tidy/VerticalAligner.pm | 43 ++++++++++++++++---------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/lib/Perl/Tidy/VerticalAligner.pm b/lib/Perl/Tidy/VerticalAligner.pm index 210a915f..246a472f 100644 --- a/lib/Perl/Tidy/VerticalAligner.pm +++ b/lib/Perl/Tidy/VerticalAligner.pm @@ -5546,40 +5546,41 @@ sub add_leading_tabs { # Given: # $line = the line of text to be written, without any tabs - # $leading_whitespace = number of leading blank spaces** + # $leading_whitespace = expected number of leading blank spaces # $level = indentation level (needed for -t) # Return: # $line = the line with possible leading tabs - # If $leading_space_count is zero, then this routine must not - # be called because we might be in a quote of some kind - if ( $leading_space_count <= 0 ) { - DEVEL_MODE && Fault(< $leading_space_count ) { + # Use actual whitespace if it exceeds prediction. This mainly + # occurs at hanging side comments. $leading_space_count = $leading_space_count_test; } -- 2.39.5