We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acaab77 commit 723ea9cCopy full SHA for 723ea9c
lib/LaTeXML/Core/Definition/Conditional.pm
@@ -59,7 +59,7 @@ sub invoke_conditional {
59
my ($self, $gullet) = @_;
60
# Keep a stack of the conditionals we are processing.
61
my $ifid = $STATE->lookupValue('if_count') || 0;
62
- $STATE->assignValue(if_count => ++$ifid, 'global');
+ $STATE->assignValue(if_count => ++$ifid, 'global') if $LaTeXML::IF_LIMIT;
63
if ($LaTeXML::IF_LIMIT and $ifid > $LaTeXML::IF_LIMIT) {
64
Fatal('timeout', 'if_limit', $self,
65
"Conditional limit of $LaTeXML::IF_LIMIT exceeded, infinite loop?"); }
0 commit comments