diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-05-21 01:10:07 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2018-05-21 01:10:07 +0000 |
commit | cd4cc83a43e2596a3afb0a44d42eb996624edc07 (patch) | |
tree | 591c6c3879de2418175094bf47896fae3d39516b | |
parent | a2cd20007cc87876581e7079cd16579ba1dea07a (diff) |
Use <span> for .Ms rather than <b>; discussed with John Gardner.
-rw-r--r-- | usr.bin/mandoc/html.c | 4 | ||||
-rw-r--r-- | usr.bin/mandoc/mandoc.css | 5 | ||||
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/mandoc/html.c b/usr.bin/mandoc/html.c index a76273b8f9c..211eca10bbf 100644 --- a/usr.bin/mandoc/html.c +++ b/usr.bin/mandoc/html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: html.c,v 1.97 2018/05/21 00:29:41 schwarze Exp $ */ +/* $OpenBSD: html.c,v 1.98 2018/05/21 01:10:06 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, "span.Pa, span.Ad { font-style: italic; }"); print_endline(h); + print_text(h, "span.Ms { font-weight: bold; }"); + 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 5cea8a31af6..6c5ae580665 100644 --- a/usr.bin/mandoc/mandoc.css +++ b/usr.bin/mandoc/mandoc.css @@ -1,4 +1,4 @@ -/* $OpenBSD: mandoc.css,v 1.15 2018/05/21 00:29:41 schwarze Exp $ */ +/* $OpenBSD: mandoc.css,v 1.16 2018/05/21 01:10:06 schwarze Exp $ */ /* * Standard style sheet for mandoc(1) -Thtml and man.cgi(8). */ @@ -212,7 +212,8 @@ code.Cd { font-style: normal; font-family: inherit; } span.Ad { font-style: italic; font-weight: normal; } -b.Ms { font-style: normal; } +span.Ms { font-style: normal; + font-weight: bold; } span.St { } a.Ux { } diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 54c5cd92958..072dcb0df64 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.177 2018/05/21 00:29:41 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.178 2018/05/21 01:10:06 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014,2015,2016,2017,2018 Ingo Schwarze <schwarze@openbsd.org> @@ -1461,7 +1461,7 @@ mdoc_ms_pre(MDOC_ARGS) if ((id = cond_id(n)) != NULL) print_otag(h, TAG_A, "chR", "permalink", id); - print_otag(h, TAG_B, "cTi", "Ms", id); + print_otag(h, TAG_SPAN, "cTi", "Ms", id); free(id); return 1; } |