From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 24884 invoked from network); 28 Jun 2022 18:19:00 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 28 Jun 2022 18:19:00 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 87b91012 for ; Tue, 28 Jun 2022 13:18:59 -0500 (EST) Received: from sysrq.in (sysrq.in [37.79.202.136]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 58fe0692 for ; Tue, 28 Jun 2022 13:18:53 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysrq.in; s=sysrq.in; t=1656440329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IpjRRZV2AqLW4asXqc/nyXlh+uPmpkHGJFhq1zfr1Pg=; b=OUbKlK+7wAnj6Cg3Ll/4bCO+4DD6/2+N/czt1YPJCDmxMJXagEa/PpGtaE86Ksb9MV1Npf dORTm6rELA8ze2HdR5RjFP1Zwix1vzeyztwhm8SSdUzXvC6DBP5Oib9o6zxcZNJkpryn4W uj9T6hZW46H9roBBPjQlDDpEKHrEm9ai/bBV6pt0pdvcUbq4wJzuUcgsqzpWrafqFwb0oC 7T7rZt0SIyM4zOmGDrfina+m7oglq5Ct0iiPFiqdHTD9HVIVSUMUGbJi89CUOt7ZQpID9C fqcPnBmdK381o00yjBE4fMlgt6aH6h2HA0tzzYy6iaq+dPHmY3z+lel3s82TWQ== Received: from sysrq.in (localhost [127.0.0.1]) by sysrq.in (OpenSMTPD) with ESMTPSA id 96d693d5 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 28 Jun 2022 18:18:49 +0000 (UTC) From: Anna Vyalkova To: tech@mandoc.bsd.lv Subject: [PATCH 1/3] Wrap manual header in the "
" tag Date: Tue, 28 Jun 2022 23:18:42 +0500 Message-Id: <20220628181844.15484-2-cyber@sysrq.in> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220628181844.15484-1-cyber@sysrq.in> References: <20220628181844.15484-1-cyber@sysrq.in> X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- html.c | 1 + html.h | 1 + man_html.c | 4 +++- mandoc.css | 3 ++- mdoc_html.c | 4 +++- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/html.c b/html.c index 0199edb0..f97c9eee 100644 --- a/html.c +++ b/html.c @@ -70,6 +70,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"div", HTML_NLAROUND}, {"section", HTML_NLALL}, {"nav", HTML_NLALL}, + {"header", HTML_NLALL}, {"table", HTML_NLALL | HTML_INDENT}, {"tr", HTML_NLALL | HTML_INDENT}, {"td", HTML_NLAROUND}, diff --git a/html.h b/html.h index 32742461..87dd057c 100644 --- a/html.h +++ b/html.h @@ -30,6 +30,7 @@ enum htmltag { TAG_DIV, TAG_SECTION, TAG_NAV, + TAG_HEADER, TAG_TABLE, TAG_TR, TAG_TD, diff --git a/man_html.c b/man_html.c index 5f715cf0..062ce899 100644 --- a/man_html.c +++ b/man_html.c @@ -263,13 +263,14 @@ print_man_node(MAN_ARGS) static void man_root_pre(const struct roff_meta *man, struct html *h) { - struct tag *t, *tt; + struct tag *th, *t, *tt; char *title; assert(man->title); assert(man->msec); mandoc_asprintf(&title, "%s(%s)", man->title, man->msec); + th = print_otag(h, TAG_HEADER, ""); t = print_otag(h, TAG_TABLE, "c", "head"); tt = print_otag(h, TAG_TR, ""); @@ -285,6 +286,7 @@ man_root_pre(const struct roff_meta *man, struct html *h) print_otag(h, TAG_TD, "c", "head-rtitle"); print_text(h, title); print_tagq(h, t); + print_tagq(h, th); free(title); } diff --git a/mandoc.css b/mandoc.css index 73f5c668..4cfb51e8 100644 --- a/mandoc.css +++ b/mandoc.css @@ -53,7 +53,8 @@ table.results { margin-top: 1em; /* Header and footer lines. */ -table.head { width: 100%; +header > table { + width: 100%; border-bottom: 1px dotted #808080; margin-bottom: 1em; font-size: smaller; } diff --git a/mdoc_html.c b/mdoc_html.c index a0e29c72..cf771b75 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -470,7 +470,7 @@ mdoc_root_post(const struct roff_meta *meta, struct html *h) static int mdoc_root_pre(const struct roff_meta *meta, struct html *h) { - struct tag *t, *tt; + struct tag *th, *t, *tt; char *volume, *title; if (NULL == meta->arch) @@ -485,6 +485,7 @@ mdoc_root_pre(const struct roff_meta *meta, struct html *h) mandoc_asprintf(&title, "%s(%s)", meta->title, meta->msec); + th = print_otag(h, TAG_HEADER, ""); t = print_otag(h, TAG_TABLE, "c", "head"); tt = print_otag(h, TAG_TR, ""); @@ -499,6 +500,7 @@ mdoc_root_pre(const struct roff_meta *meta, struct html *h) print_otag(h, TAG_TD, "c", "head-rtitle"); print_text(h, title); print_tagq(h, t); + print_tagq(h, th); free(title); free(volume); -- 2.35.1 -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv