summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-24 20:49:14 +0000
committerKarl Berry <karl@freefriends.org>2021-07-24 20:49:14 +0000
commited17b4b97e16c81b6869381411a74466acc81a23 (patch)
treef0871d251227472de31d3d3d8ef72234f0eb9d4d /Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm
parentf0de3338cfffa669b4bfa9f7b24d887637265089 (diff)
latexindent (24jul21)
git-svn-id: svn://tug.org/texlive/trunk@60045 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm')
-rw-r--r--Master/texmf-dist/scripts/latexindent/LatexIndent/Indent.pm4
1 files changed, 2 insertions, 2 deletions
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 <begin statement>
- if(defined ${$child}{BeginStartsOnOwnLine}){
+ if(defined ${$child}{BeginStartsOnOwnLine} and ${$child}{BeginStartsOnOwnLine} !=0 ){
my $BeginStringLogFile = ${$child}{aliases}{BeginStartsOnOwnLine}||"BeginStartsOnOwnLine";
#