From a77bef18f1857a07c9bb3dee9c7baf792fcfe588 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 3 Jul 2022 14:29:44 +0000 Subject: Instead of the custom
, use the standard HTML
element. The benefit is that it has the ARIA landmark role "main" by default. To ease the transition for people using their own CSS file instead of mandoc.css, retain the custom class for now. I had this idea in a discussion with Anna Vyalkova . Patch from Anna, slightly tweaked by me. --- man_html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man_html.c') diff --git a/man_html.c b/man_html.c index 147c20e4..24420bed 100644 --- a/man_html.c +++ b/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.179 2020/10/16 17:22:43 schwarze Exp $ */ +/* $Id: man_html.c,v 1.180 2022/07/03 14:29:45 schwarze Exp $ */ /* * Copyright (c) 2013-2015, 2017-2020 Ingo Schwarze * Copyright (c) 2008-2012, 2014 Kristaps Dzonsons @@ -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); -- cgit v1.2.3-56-ge451