aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-08 17:52:55 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-08 17:52:55 +0000
commit8a7069d03a4019d0695562840e952404eaeb9187 (patch)
tree6f42ef90aee89e8d8f9e61c95a218173b17d3ba9 /html.c
parent199eda4478d4d90df3199670dc0ab51b4bb031a6 (diff)
downloadmandoc-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.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/html.c b/html.c
index ad224671..00631cd9 100644
--- a/html.c
+++ b/html.c
@@ -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);
}