diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-05-21 00:29:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-05-21 00:29:42 +0000 |
commit | a2cd20007cc87876581e7079cd16579ba1dea07a (patch) | |
tree | 624e4ffc697d54b8b0341986634d99101fb65b34 | |
parent | 7488b655b2ad90c310318d9ca8dfc21720d5dae8 (diff) |
Use <span> for .Ad rather than <i>; also suggested by John Gardner.
-rw-r--r-- | usr.bin/mandoc/html.c | 4 | ||||
-rw-r--r-- | usr.bin/mandoc/mandoc.css | 5 | ||||
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 4 |
3 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/mandoc/html.c b/usr.bin/mandoc/html.c index 1151ca8831f..a76273b8f9c 100644 --- a/usr.bin/mandoc/html.c +++ b/usr.bin/mandoc/html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: html.c,v 1.96 2018/05/20 23:54:15 schwarze Exp $ */ +/* $OpenBSD: html.c,v 1.97 2018/05/21 00:29:41 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -188,7 +188,7 @@ print_gen_head(struct html *h) print_endline(h); print_text(h, "div.Nd, div.Bf, div.Op { display: inline; }"); print_endline(h); - print_text(h, "span.Pa { font-style: italic; }"); + print_text(h, "span.Pa, span.Ad { font-style: italic; }"); print_endline(h); print_text(h, "dl.Bl-diag "); print_byte(h, '>'); diff --git a/usr.bin/mandoc/mandoc.css b/usr.bin/mandoc/mandoc.css index 0439702f285..5cea8a31af6 100644 --- a/usr.bin/mandoc/mandoc.css +++ b/usr.bin/mandoc/mandoc.css @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc.css,v 1.14 2018/05/20 23:54:15 schwarze Exp $ */ +/* $OpenBSD: mandoc.css,v 1.15 2018/05/21 00:29:41 schwarze Exp $ */ /* * Standard style sheet for mandoc(1) -Thtml and man.cgi(8). */ @@ -210,7 +210,8 @@ a.Mt { } code.Cd { font-style: normal; font-weight: bold; font-family: inherit; } -i.Ad { font-weight: normal; } +span.Ad { font-style: italic; + font-weight: normal; } b.Ms { font-style: normal; } span.St { } a.Ux { } diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index fec15a143d6..54c5cd92958 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.176 2018/05/20 23:54:15 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.177 2018/05/21 00:29:41 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org> @@ -984,7 +984,7 @@ mdoc_pa_pre(MDOC_ARGS) static int mdoc_ad_pre(MDOC_ARGS) { - print_otag(h, TAG_I, "c", "Ad"); + print_otag(h, TAG_SPAN, "c", "Ad"); return 1; } |