diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-15 03:01:18 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-15 03:01:18 +0000 |
commit | 0efaa39c6d0b17b58df9a68ae1319ea20aaabc28 (patch) | |
tree | 677b276738cd1c52e8778f985da1705c64a4b729 /support/latexindent/LatexIndent/OptionalArgument.pm | |
parent | 829614e28f2055883ff74da11eb4e5e57d199be3 (diff) |
CTAN sync 202112150301
Diffstat (limited to 'support/latexindent/LatexIndent/OptionalArgument.pm')
-rw-r--r-- | support/latexindent/LatexIndent/OptionalArgument.pm | 8 |
1 files changed, 8 insertions, 0 deletions
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; |