From d87fd9991b3f2008e4d248991fdf4d47390c4704 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 6 Jul 2022 14:34:59 +0000 Subject: While the HTML standard allows multiple

elements in the same document,

is intended for top level headers, and most of the sections in a manual page can hardly be considered top-level. It is more usual to use

only for the main title of the document of for the site name. Consequently, move .Sh/.SH from

to

and .Ss/.SS from

to

, freeing

for use by header.html in man.cgi(8). Discussed with Anna Vyalkova . --- man_html.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'man_html.c') diff --git a/man_html.c b/man_html.c index 19337a10..6ad35578 100644 --- a/man_html.c +++ b/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.182 2022/07/05 21:25:29 schwarze Exp $ */ +/* $Id: man_html.c,v 1.183 2022/07/06 14:34:59 schwarze Exp $ */ /* * Copyright (c) 2013-2015,2017-2020,2022 Ingo Schwarze * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons @@ -316,10 +316,10 @@ man_SH_pre(MAN_ARGS) enum htmltag tag; if (n->tok == MAN_SH) { - tag = TAG_H1; + tag = TAG_H2; class = "Sh"; } else { - tag = TAG_H2; + tag = TAG_H3; class = "Ss"; } switch (n->type) { -- cgit v1.2.3-56-ge451