Make default_tag use its second argument

This commit is contained in:
Matti Virkkunen 2023-07-26 10:42:34 +03:00
parent 17f0fe8428
commit 2a0afc98ca

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();
}