From 0efaa39c6d0b17b58df9a68ae1319ea20aaabc28 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 15 Dec 2021 03:01:18 +0000 Subject: CTAN sync 202112150301 --- support/latexindent/LatexIndent/OptionalArgument.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'support/latexindent/LatexIndent/OptionalArgument.pm') diff --git a/support/latexindent/LatexIndent/OptionalArgument.pm b/support/latexindent/LatexIndent/OptionalArgument.pm index fdaa549a7a..31e7b8f51e 100644 --- a/support/latexindent/LatexIndent/OptionalArgument.pm +++ b/support/latexindent/LatexIndent/OptionalArgument.pm @@ -107,6 +107,14 @@ sub create_unique_id{ sub tasks_particular_to_each_object{ my $self = shift; + # lookForAlignDelims: lookForChildCodeBlocks set to 0 means no child objects searched for + # see: test-cases/alignment/issue-308-command.tex + # + if( defined ${$self}{lookForChildCodeBlocks} and !${$self}{lookForChildCodeBlocks} ){ + $logger->trace("lookForAlignDelims: lookForChildCodeBlocks set to 0, so child objects will *NOT* be searched for") if($is_t_switch_active); + return; + } + # search for ifElseFi blocks $self->find_ifelsefi if ${$self}{body} =~ m/$ifElseFiBasicRegExp/s; -- cgit v1.2.3