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 | 559195dcad0532b7eb395988eb0122053d7d12c5 (patch) | |
tree | d4f0ff03ca5b1873500375179a7159a8b2df5d75 | |
parent | 73beeba33e71efeeba0e349f87884864df356be1 (diff) | |
download | mandoc-559195dcad0532b7eb395988eb0122053d7d12c5.tar.gz mandoc-559195dcad0532b7eb395988eb0122053d7d12c5.tar.zst mandoc-559195dcad0532b7eb395988eb0122053d7d12c5.zip |
Use <span> for .Ad rather than <i>; also suggested by John Gardner.
-rw-r--r-- | html.c | 4 | ||||
-rw-r--r-- | mandoc.css | 5 | ||||
-rw-r--r-- | mdoc_html.c | 4 |
3 files changed, 7 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.226 2018/05/21 00:00:37 schwarze Exp $ */ +/* $Id: html.c,v 1.227 2018/05/21 00:30:23 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -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, '>'); @@ -1,4 +1,4 @@ -/* $Id: mandoc.css,v 1.27 2018/05/21 00:00:37 schwarze Exp $ */ +/* $Id: mandoc.css,v 1.28 2018/05/21 00:30:23 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/mdoc_html.c b/mdoc_html.c index 4e72f123..73e5d8ca 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.301 2018/05/21 00:00:37 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.302 2018/05/21 00:30:23 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org> @@ -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; } |