diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-05-21 00:30:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-05-21 00:30:23 +0000 |
commit | e78f92999babd9f87dc74ee273daca5486cd2997 (patch) | |
tree | 3884ff11c45d89d86aae9055eec1aeb7d86d57d2 | |
parent | b4255adc323099e5663b8052753a0e07775e7ef0 (diff) | |
download | mandoc-e78f92999babd9f87dc74ee273daca5486cd2997.tar.gz |
Use <span> for .Ad rather than <i>; also suggested by John Gardner.
-rw-r--r-- | html.c | 2 | ||||
-rw-r--r-- | mandoc.css | 3 | ||||
-rw-r--r-- | mdoc_html.c | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -190,7 +190,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, '>'); @@ -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/mdoc_html.c b/mdoc_html.c index 9f6e9f14..4a87a8bd 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -986,7 +986,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; } |