If a node is tagged explicitly, skip implicit tagging for that node.
authorschwarze <schwarze@openbsd.org>
Tue, 26 Apr 2022 11:28:35 +0000 (11:28 +0000)
committerschwarze <schwarze@openbsd.org>
Tue, 26 Apr 2022 11:28:35 +0000 (11:28 +0000)
commit7fbd65bb7b0a99c63cb70db3c228f22a76ec5066
tree9d4c417200ef158dde2d086af55e8294832d8bc9
parent02c0606340d470802b63240fb57b6dde8429afb7
If a node is tagged explicitly, skip implicit tagging for that node.
Apart from making sense in the first place, this fixes an assertion
failure that happened when the calculated implicit tag did not match
the string value of the first child of the node,

Bug found by tb@ using afl(1).
regress/usr.bin/mandoc/mdoc/Tg/Makefile
regress/usr.bin/mandoc/mdoc/Tg/implicit.in [new file with mode: 0644]
regress/usr.bin/mandoc/mdoc/Tg/implicit.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/mdoc/Tg/implicit.out_html [new file with mode: 0644]
regress/usr.bin/mandoc/mdoc/Tg/implicit.out_markdown [new file with mode: 0644]
regress/usr.bin/mandoc/mdoc/Tg/implicit.out_tag [new file with mode: 0644]
usr.bin/mandoc/tag.c