From 73beeba33e71efeeba0e349f87884864df356be1 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 21 May 2018 00:00:37 +0000 Subject: Use rather than abusing for .Pa; suggested by John Gardner . --- html.c | 4 +++- mandoc.css | 5 +++-- mdoc_html.c | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/html.c b/html.c index 33cb67c4..22f7d6dd 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.225 2018/05/09 00:46:10 schwarze Exp $ */ +/* $Id: html.c,v 1.226 2018/05/21 00:00:37 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze @@ -190,6 +190,8 @@ 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_endline(h); print_text(h, "dl.Bl-diag "); print_byte(h, '>'); print_text(h, " dt { font-weight: bold; }"); diff --git a/mandoc.css b/mandoc.css index dbedcb75..469a38fe 100644 --- a/mandoc.css +++ b/mandoc.css @@ -1,4 +1,4 @@ -/* $Id: mandoc.css,v 1.26 2018/05/09 00:46:10 schwarze Exp $ */ +/* $Id: mandoc.css,v 1.27 2018/05/21 00:00:37 schwarze Exp $ */ /* * Standard style sheet for mandoc(1) -Thtml and man.cgi(8). */ @@ -171,7 +171,8 @@ code.Ic { font-style: normal; code.Ev { font-style: normal; font-weight: normal; font-family: monospace; } -i.Pa { font-weight: normal; } +span.Pa { font-style: italic; + font-weight: normal; } /* Semantic markup for function libraries. */ diff --git a/mdoc_html.c b/mdoc_html.c index c871181d..4e72f123 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.300 2018/05/09 00:46:10 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.301 2018/05/21 00:00:37 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze @@ -979,7 +979,7 @@ mdoc_bd_pre(MDOC_ARGS) static int mdoc_pa_pre(MDOC_ARGS) { - print_otag(h, TAG_I, "cT", "Pa"); + print_otag(h, TAG_SPAN, "cT", "Pa"); return 1; } -- cgit v1.2.3-56-ge451