=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.274 retrieving revision 1.276 diff -u -p -r1.274 -r1.276 --- mandoc/html.c 2021/08/10 12:55:03 1.274 +++ mandoc/html.c 2022/06/24 11:15:53 1.276 @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.274 2021/08/10 12:55:03 schwarze Exp $ */ +/* $Id: html.c,v 1.276 2022/06/24 11:15:53 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017-2021 Ingo Schwarze @@ -69,6 +69,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"body", HTML_NLALL}, {"div", HTML_NLAROUND}, {"section", HTML_NLALL}, + {"nav", HTML_NLALL}, {"table", HTML_NLALL | HTML_INDENT}, {"tr", HTML_NLALL | HTML_INDENT}, {"td", HTML_NLAROUND}, @@ -91,6 +92,7 @@ static const struct htmldata htmltags[TAG_MAX] = { {"span", HTML_INPHRASE | HTML_TOPHRASE}, {"var", HTML_INPHRASE | HTML_TOPHRASE}, {"br", HTML_INPHRASE | HTML_NOSTACK | HTML_NLALL}, + {"hr", HTML_INPHRASE | HTML_NOSTACK}, {"mark", HTML_INPHRASE }, {"math", HTML_INPHRASE | HTML_NLALL | HTML_INDENT}, {"mrow", 0}, @@ -706,6 +708,9 @@ print_otag(struct html *h, enum htmltag tag, const cha break; case 'i': attr = "id"; + break; + case 'r': + attr = "role"; break; case '?': attr = arg1;