Re: Treatment of duplicate tags in tagged includes from the same file
Posted by
mojavelinux on
May 17, 2020; 8:36pm
URL: https://discuss.asciidoctor.org/Treatment-of-duplicate-tags-in-tagged-includes-from-the-same-file-tp8010p8018.html
Jon,
This behavior is intentional. Including by tag includes all regions marked with that tag. This makes it possible to include a group of lines from different regions of the document using a single tag.
> Assign a unique name to the tag directive. In this example the tag is called timings.
This point is outdated / invalid. If you'd like to submit a patch to correct it, I'll merge it.
Best Regards,
-Dan
On Sun, May 17, 2020 at 8:00 AM oddhack [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
https://asciidoctor.org/docs/user-manual/#by-tagged-regions says:
"Assign a unique name to the tag directive. In this example the tag is called timings."
This doesn't seem to be enforced in ruby asciidoctor 2.0.10, at least. If I have a file with two tagged regions using the same tag, and include that tag (once) from another file, then both regions are included. Is this intentional but not well documented behavior, or a bug?
Thanks,
Jon
--