Merge pull request #1214 from mvirkkunen/fix-default-tag

Make default_tag use its second argument
This commit is contained in:
Revar Desmera 2023-07-26 20:21:55 -07:00 committed by GitHub
commit 3c18cb754d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -862,9 +862,9 @@ module force_tag(tag)
// position(TOP) thing();
// position(RIGHT) tag("keep_it") thing();
// }
module default_tag(tag,do_tag=false)
module default_tag(tag,do_tag=true)
{
if ($tag=="") tag(tag) children();
if ($tag=="" && do_tag) tag(tag) children();
else children();
}