diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-05-08 17:52:55 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-05-08 17:52:55 +0000 |
commit | 8a7069d03a4019d0695562840e952404eaeb9187 (patch) | |
tree | 6f42ef90aee89e8d8f9e61c95a218173b17d3ba9 /html.c | |
parent | 199eda4478d4d90df3199670dc0ab51b4bb031a6 (diff) | |
download | mandoc-8a7069d03a4019d0695562840e952404eaeb9187.tar.gz mandoc-8a7069d03a4019d0695562840e952404eaeb9187.tar.zst mandoc-8a7069d03a4019d0695562840e952404eaeb9187.zip |
Switch the emitted HTML element from <b> to <code> for the fixed
syntax element macros .Nm, .Fl, .Cm, .Ic, .In, .Fd, .Fn, and .Cd.
Adjust both the internal and external style sheets such that
rendering remains unchanged in typical browsers.
Based on feedback from John Gardner <gardnerjohng at gmail dot com>.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.222 2018/05/01 23:36:55 schwarze Exp $ */ +/* $Id: html.c,v 1.223 2018/05/08 17:52:55 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -186,6 +186,12 @@ print_gen_head(struct html *h) print_text(h, "td.head-vol { text-align: center; }"); print_endline(h); print_text(h, "div.Pp { margin: 1ex 0ex; }"); + print_endline(h); + print_text(h, "code.Nm, code.Fl, code.Cm, code.Ic, " + "code.In, code.Fd, code.Fn,"); + print_endline(h); + print_text(h, "code.Cd { font-weight: bold; " + "font-family: inherit; }"); print_tagq(h, t); } |