From e78f92999babd9f87dc74ee273daca5486cd2997 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 21 May 2018 00:30:23 +0000 Subject: Use for .Ad rather than ; also suggested by John Gardner. --- html.c | 2 +- mandoc.css | 3 ++- mdoc_html.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/html.c b/html.c index 433bb945..f0d493a4 100644 --- a/html.c +++ b/html.c @@ -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, '>'); diff --git a/mandoc.css b/mandoc.css index 935c5d6b..432bef0e 100644 --- a/mandoc.css +++ b/mandoc.css @@ -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; } -- cgit