diff options
Diffstat (limited to 'support/latexindent/LatexIndent/Indent.pm')
-rw-r--r-- | support/latexindent/LatexIndent/Indent.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/latexindent/LatexIndent/Indent.pm b/support/latexindent/LatexIndent/Indent.pm index ffb4d3f737..bf1216d5b1 100644 --- a/support/latexindent/LatexIndent/Indent.pm +++ b/support/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"; # |