summaryrefslogtreecommitdiff
path: root/support/latexindent/LatexIndent/Environment.pm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-15 03:01:18 +0000
committerNorbert Preining <norbert@preining.info>2021-12-15 03:01:18 +0000
commit0efaa39c6d0b17b58df9a68ae1319ea20aaabc28 (patch)
tree677b276738cd1c52e8778f985da1705c64a4b729 /support/latexindent/LatexIndent/Environment.pm
parent829614e28f2055883ff74da11eb4e5e57d199be3 (diff)
CTAN sync 202112150301
Diffstat (limited to 'support/latexindent/LatexIndent/Environment.pm')
-rw-r--r--support/latexindent/LatexIndent/Environment.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/support/latexindent/LatexIndent/Environment.pm b/support/latexindent/LatexIndent/Environment.pm
index 12c8d6e191..0f51dfec56 100644
--- a/support/latexindent/LatexIndent/Environment.pm
+++ b/support/latexindent/LatexIndent/Environment.pm
@@ -109,6 +109,14 @@ sub tasks_particular_to_each_object{
${${$self}{linebreaksAtEnd}}{body} = 1;
}
+ # lookForAlignDelims: lookForChildCodeBlocks set to 0 means no child objects searched for
+ # see: test-cases/alignment/issue-308.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 items as the first order of business
$self->find_items if ${$mainSettings{indentAfterItems}}{${$self}{name}};