summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-21 00:30:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-21 00:30:23 +0000
commite78f92999babd9f87dc74ee273daca5486cd2997 (patch)
tree3884ff11c45d89d86aae9055eec1aeb7d86d57d2
parentb4255adc323099e5663b8052753a0e07775e7ef0 (diff)
downloadmandoc-e78f92999babd9f87dc74ee273daca5486cd2997.tar.gz
Use <span> for .Ad rather than <i>; also suggested by John Gardner.
-rw-r--r--html.c2
-rw-r--r--mandoc.css3
-rw-r--r--mdoc_html.c2
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;
}