aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-21 00:00:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-21 00:00:37 +0000
commit73beeba33e71efeeba0e349f87884864df356be1 (patch)
tree314be439c0e6664b63b961eaaf3c6274fb9a990a
parenta5431e98343d01db298db894f32761963d932e48 (diff)
downloadmandoc-73beeba33e71efeeba0e349f87884864df356be1.tar.gz
mandoc-73beeba33e71efeeba0e349f87884864df356be1.tar.zst
mandoc-73beeba33e71efeeba0e349f87884864df356be1.zip
Use <span> rather than abusing <i> for .Pa;
suggested by John Gardner <gardnerjohng at gmail dot com>.
-rw-r--r--html.c4
-rw-r--r--mandoc.css5
-rw-r--r--mdoc_html.c4
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 <kristaps@bsd.lv>
* Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 <kristaps@bsd.lv>
* Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;
}