From 559195dcad0532b7eb395988eb0122053d7d12c5 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 | 4 ++-- mandoc.css | 5 +++-- mdoc_html.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/html.c b/html.c index 22f7d6dd..79de70c9 100644 --- a/html.c +++ b/html.c @@ -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 * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze @@ -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 469a38fe..e26845f1 100644 --- a/mandoc.css +++ b/mandoc.css @@ -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 * Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze @@ -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 v1.2.3-56-ge451