summaryrefslogtreecommitdiff
path: root/support/latexindent/LatexIndent/Item.pm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-04-08 03:01:13 +0000
committerNorbert Preining <norbert@preining.info>2023-04-08 03:01:13 +0000
commit24c6de40a2869f5b6c213c2cf69e597f885f2b19 (patch)
tree5225200910d14cb8b177fad2192b492f3b254e5c /support/latexindent/LatexIndent/Item.pm
parentbd96eb3748479a2feb0e8a0ef06203de92766953 (diff)
CTAN sync 202304080301
Diffstat (limited to 'support/latexindent/LatexIndent/Item.pm')
-rw-r--r--support/latexindent/LatexIndent/Item.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/latexindent/LatexIndent/Item.pm b/support/latexindent/LatexIndent/Item.pm
index 0e7201a800..8fe5045852 100644
--- a/support/latexindent/LatexIndent/Item.pm
+++ b/support/latexindent/LatexIndent/Item.pm
@@ -146,7 +146,7 @@ sub remove_line_breaks_begin {
# there is no white space
my $self = shift;
my $BodyStringLogFile = ${$self}{aliases}{BodyStartsOnOwnLine} || "BodyStartsOnOwnLine";
- $logger->trace("Removing linebreak at the end of begin (see $BodyStringLogFile)");
+ $logger->trace("Removing linebreak at the end of begin (see $BodyStringLogFile)") if $is_t_switch_active;
${$self}{begin} =~ s/\R*$//sx;
${$self}{begin} .= " "
unless ( ${$self}{begin} =~ m/\h$/s or ${$self}{body} =~ m/^\h/s or ${$self}{body} =~ m/^\R/s );