From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: from mandoc.bsd.lv (bsd.lv [66.111.2.12]) by inbox.vuxu.org (Postfix) with ESMTP id 058B720C3B for ; Sat, 25 Jan 2025 01:22:32 +0100 (CET) Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id a7bfc23f for ; Sat, 25 Jan 2025 00:22:31 +0000 (UTC) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id 0a5b1ced for ; Sat, 25 Jan 2025 00:22:31 +0000 (UTC) Date: Sat, 25 Jan 2025 00:22:31 +0000 (UTC) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Fix a violation of the HTML 5 standard (paragraph 4.5.6 "The X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <12bbce904d9b2819@mandoc.bsd.lv> Log Message: ----------- Fix a violation of the HTML 5 standard (paragraph 4.5.6 "The cite element"). It is intended for titles, not to wrap complete citation blocks. Found in a conversation with job@ and tb@. Modified Files: -------------- mandoc: mdoc_html.c mandoc/regress/mdoc/Rs: journal.out_html outside.out_html paragraph.out_html rfc.out_html Revision Data ------------- Index: mdoc_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/mdoc_html.c,v diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.352 -r1.353 --- mdoc_html.c +++ mdoc_html.c @@ -1456,7 +1456,7 @@ mdoc_rs_pre(MDOC_ARGS) case ROFFT_BODY: if (n->sec == SEC_SEE_ALSO) print_otag(h, TAG_P, "c", "Pp"); - print_otag(h, TAG_CITE, "c", "Rs"); + print_otag(h, TAG_SPAN, "c", "Rs"); break; default: abort(); @@ -1510,7 +1510,7 @@ mdoc__x_pre(MDOC_ARGS) print_text(h, "and"); break; case MDOC__B: - t = TAG_I; + t = TAG_CITE; cattr = "RsB"; break; case MDOC__C: @@ -1555,6 +1555,7 @@ mdoc__x_pre(MDOC_ARGS) cattr = "RsR"; break; case MDOC__T: + t = TAG_CITE; if (n->parent != NULL && n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T) { print_text(h, "\\(lq"); Index: outside.out_html =================================================================== RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Rs/outside.out_html,v diff -Lregress/mdoc/Rs/outside.out_html -Lregress/mdoc/Rs/outside.out_html -u -p -r1.1 -r1.2 --- regress/mdoc/Rs/outside.out_html +++ regress/mdoc/Rs/outside.out_html @@ -1,4 +1,4 @@

Some percent-macros can be used outside reference blocks. For - example, let's study The Book of PF and relax reading - A Standard for the Transmission of IP Datagrams on Avian - Carriers afterwards.

+ example, let's study The Book of PF and relax + reading A Standard for the Transmission of IP Datagrams on + Avian Carriers afterwards.

Index: paragraph.out_html =================================================================== RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Rs/paragraph.out_html,v diff -Lregress/mdoc/Rs/paragraph.out_html -Lregress/mdoc/Rs/paragraph.out_html -u -p -r1.6 -r1.7 --- regress/mdoc/Rs/paragraph.out_html +++ regress/mdoc/Rs/paragraph.out_html @@ -1,15 +1,15 @@
- initial reference: author name, - book title.

-

in a paragraph: another - author, another book.

+ initial reference: author name, + book title.

+

in a paragraph: another + author, another book.

initial reference:

-

author name, - book title.

+

author name, + book title.

in a paragraph:

-

another author, - another book.

+

another author, + another book.

Index: rfc.out_html =================================================================== RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Rs/rfc.out_html,v diff -Lregress/mdoc/Rs/rfc.out_html -Lregress/mdoc/Rs/rfc.out_html -u -p -r1.2 -r1.3 --- regress/mdoc/Rs/rfc.out_html +++ regress/mdoc/Rs/rfc.out_html @@ -1,5 +1,5 @@ -

David Waitzman, - A Standard for the Transmission of IP Datagrams on Avian - Carriers, +

David Waitzman, + A Standard for the Transmission of IP Datagrams on Avian + Carriers, RFC - 1149, April 1990.

+ 1149, April 1990.

Index: journal.out_html =================================================================== RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/Rs/journal.out_html,v diff -Lregress/mdoc/Rs/journal.out_html -Lregress/mdoc/Rs/journal.out_html -u -p -r1.1 -r1.2 --- regress/mdoc/Rs/journal.out_html +++ regress/mdoc/Rs/journal.out_html @@ -1,5 +1,5 @@ -

Brian W. Kernighan and - Lorinda L. Cherry, “System - for Typesetting Mathematics”, Communications of +

Brian W. Kernighan and + Lorinda L. Cherry, “System + for Typesetting Mathematics”, Communications of the ACM, 18, pp. - 151–157, March 1975.

+ 151–157, March 1975.

-- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv