summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-05-20 23:54:16 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-05-20 23:54:16 +0000
commit7488b655b2ad90c310318d9ca8dfc21720d5dae8 (patch)
tree193f9b05a18965b425aa09d307d307e3b0a9384a /usr.bin
parent919cf5f24b89616d7c1813ad625287d2622a8338 (diff)
Use <span> rather than abusing <i> for .Pa;
suggested by John Gardner <gardnerjohng at gmail dot com>.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mandoc/html.c4
-rw-r--r--usr.bin/mandoc/mandoc.css5
-rw-r--r--usr.bin/mandoc/mdoc_html.c4
3 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/mandoc/html.c b/usr.bin/mandoc/html.c
index 09c4c7e6ee2..1151ca8831f 100644
--- a/usr.bin/mandoc/html.c
+++ b/usr.bin/mandoc/html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: html.c,v 1.95 2018/05/09 00:45:33 schwarze Exp $ */
+/* $OpenBSD: html.c,v 1.96 2018/05/20 23:54:15 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -188,6 +188,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/usr.bin/mandoc/mandoc.css b/usr.bin/mandoc/mandoc.css
index aadcfd1c4cc..0439702f285 100644
--- a/usr.bin/mandoc/mandoc.css
+++ b/usr.bin/mandoc/mandoc.css
@@ -1,4 +1,4 @@
-/* $OpenBSD: mandoc.css,v 1.13 2018/05/09 00:45:33 schwarze Exp $ */
+/* $OpenBSD: mandoc.css,v 1.14 2018/05/20 23:54:15 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/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c
index fada6019855..fec15a143d6 100644
--- a/usr.bin/mandoc/mdoc_html.c
+++ b/usr.bin/mandoc/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_html.c,v 1.175 2018/05/09 00:45:33 schwarze Exp $ */
+/* $OpenBSD: mdoc_html.c,v 1.176 2018/05/20 23:54:15 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -977,7 +977,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;
}