Skip to content

Commit

Permalink
Careful coding in applyAligningContext; thanks dginev
Browse files Browse the repository at this point in the history
  • Loading branch information
brucemiller committed Dec 22, 2023
1 parent 6e1b340 commit dbcd9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/LaTeXML/Package/LaTeX.pool.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -1377,11 +1377,11 @@ sub applyAligningContext {
my ($document, $align, $class) = @_;
if (my $container = LookupValue('ALIGNING_NODE')) {
my ($node, $previous) = @$container;
my @children = $node->childNodes($node);
my @children = $node->childNodes;
while (my $skip = shift(@children)) {
last if !$previous || $previous->isSameNode($skip); }
while (my $child = shift(@children)) {
setAlignOrClass($document, $child, $align, $class); } }
setAlignOrClass($document, $child, $align, $class) if $child->nodeType == XML_ELEMENT_NODE; } }
return; }

DefConstructorI('\centering', undef, \&setupAligningContext,
Expand Down

0 comments on commit dbcd9f3

Please sign in to comment.