Treatment of duplicate tags in tagged includes from the same file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Treatment of duplicate tags in tagged includes from the same file

oddhack
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
Reply | Threaded
Open this post in threaded view
|

Re: Treatment of duplicate tags in tagged includes from the same file

mojavelinux
Administrator
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



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Treatment-of-duplicate-tags-in-tagged-includes-from-the-same-file-tp8010.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux