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 24889 invoked from network); 28 Jun 2022 18:19:01 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 28 Jun 2022 18:19:01 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id c784a3f8 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 423d6ae9 for ; Tue, 28 Jun 2022 13:18:54 -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=K4b1UsfASGGYIaNkRBwx9i/tY4uTC2baK0iBwD4OZhc=; b=O2bxA3bMP4VtVez+tvN2+obhMSPXF8sqOeKr111/O6fHdkytu7EQbq/HC3yIoh2iHFt6ld afGgcU6PtI3AmGGyz/k0nNqHVtftrjeG53nsjsp7CHnQFRZfA1IyfsJOGDARz69+fCTHmx 3c7wDNtvXxF8mkUuli4dEViz0Y01wifyxFOwAQjyTYaWeBV7icb+5wXVXXhMiTne5b4Ih7 Dr1fNTxk5ru6vkKjWVWhpRPA6nh9/c7LtC07fwFLu9FW8jQJUxCk4OZTxWqQaZ5LZ/QOc8 DI33/qwFbCDVW1oB0+kJYwK0BiGSpbmIlYYPR9nO01LxgYzVb9HGywKp5MpoUw== Received: from sysrq.in (localhost [127.0.0.1]) by sysrq.in (OpenSMTPD) with ESMTPSA id 5e7f06e1 (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 2/3] Wrap manual text in the "
" tag Date: Tue, 28 Jun 2022 23:18:43 +0500 Message-Id: <20220628181844.15484-3-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 | 2 +- mandoc.css | 3 +-- mdoc_html.c | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/html.c b/html.c index f97c9eee..62479543 100644 --- a/html.c +++ b/html.c @@ -71,6 +71,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"section", HTML_NLALL}, {"nav", HTML_NLALL}, {"header", HTML_NLALL}, + {"main", HTML_NLALL}, {"table", HTML_NLALL | HTML_INDENT}, {"tr", HTML_NLALL | HTML_INDENT}, {"td", HTML_NLAROUND}, diff --git a/html.h b/html.h index 87dd057c..53a865f6 100644 --- a/html.h +++ b/html.h @@ -31,6 +31,7 @@ enum htmltag { TAG_SECTION, TAG_NAV, TAG_HEADER, + TAG_MAIN, TAG_TABLE, TAG_TR, TAG_TD, diff --git a/man_html.c b/man_html.c index 062ce899..817f4898 100644 --- a/man_html.c +++ b/man_html.c @@ -132,7 +132,7 @@ html_man(void *arg, const struct roff_meta *man) } man_root_pre(man, h); - t = print_otag(h, TAG_DIV, "c", "manual-text"); + t = print_otag(h, TAG_MAIN, "c", "manual-text"); print_man_nodelist(man, n, h); print_tagq(h, t); man_root_post(man, h); diff --git a/mandoc.css b/mandoc.css index 4cfb51e8..4e0afd7c 100644 --- a/mandoc.css +++ b/mandoc.css @@ -70,8 +70,7 @@ td.foot-os { text-align: right; } /* Sections and paragraphs. */ -.manual-text { - margin-left: 3.8em; } +main { margin-left: 3.8em; } .Nd { } section.Sh { } h1.Sh { margin-top: 1.2em; diff --git a/mdoc_html.c b/mdoc_html.c index cf771b75..1fe3a7ed 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -302,7 +302,7 @@ html_mdoc(void *arg, const struct roff_meta *mdoc) } mdoc_root_pre(mdoc, h); - t = print_otag(h, TAG_DIV, "c", "manual-text"); + t = print_otag(h, TAG_MAIN, "c", "manual-text"); print_mdoc_nodelist(mdoc, n, h); print_tagq(h, t); mdoc_root_post(mdoc, h); -- 2.35.1 -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv