From ed17b4b97e16c81b6869381411a74466acc81a23 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 24 Jul 2021 20:49:14 +0000 Subject: latexindent (24jul21) git-svn-id: svn://tug.org/texlive/trunk@60045 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm') diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm index ffb4d3f7375..bf1216d5b1b 100644 --- a/Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm +++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm @@ -118,7 +118,7 @@ sub indent_body{ $self->check_for_blank_lines_at_beginning if $is_m_switch_active; # some objects can format their body to align at the & character - $self->align_at_ampersand if ${$self}{lookForAlignDelims}; + $self->align_at_ampersand if (${$self}{lookForAlignDelims} and !${$self}{dontMeasure}); # grab the indentation of the object # NOTE: we need this here, as ${$self}{indentation} can be updated by the align_at_ampersand routine, @@ -324,7 +324,7 @@ sub indent_children_recursively{ :q(); # line break checks before - if(defined ${$child}{BeginStartsOnOwnLine}){ + if(defined ${$child}{BeginStartsOnOwnLine} and ${$child}{BeginStartsOnOwnLine} !=0 ){ my $BeginStringLogFile = ${$child}{aliases}{BeginStartsOnOwnLine}||"BeginStartsOnOwnLine"; # -- cgit v1.2.3