Skip to content

Commit 7d95186

Browse files
authored
Merge pull request #1439 from Alex-Jordan/empty-tags
allow empty containers in PGML
2 parents 681249b + 11fa3be commit 7d95186

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

macros/core/PGML.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ sub Terminate {
270270
}
271271
$self->{block} = $prev;
272272
if ($block->{stack}) {
273-
if (scalar(@{ $block->{stack} }) == 0) { $prev->popItem }
274-
elsif ($block->{combine}) { $prev->combineTopItems }
273+
if (!$block->{isContainer} && scalar(@{ $block->{stack} }) == 0) { $prev->popItem }
274+
elsif ($block->{combine}) { $prev->combineTopItems }
275275
}
276276
}
277277

0 commit comments

Comments
 (0)