aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-05-08 21:42:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-05-08 21:42:34 +0000
commit35d4aaed89e7337b61f0213b253b9bee370ad2c3 (patch)
tree69900d27d3132175d469c427dc6526c136102d1b /html.c
parent8a7069d03a4019d0695562840e952404eaeb9187 (diff)
downloadmandoc-35d4aaed89e7337b61f0213b253b9bee370ad2c3.tar.gz
mandoc-35d4aaed89e7337b61f0213b253b9bee370ad2c3.tar.zst
mandoc-35d4aaed89e7337b61f0213b253b9bee370ad2c3.zip
Eliminate the class=It-* attributes.
Cleaner HTML, more idiomatic CSS, and minus 30 lines of C code. Suggested by John Gardner <gardnerjohng at gmail dot com>.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 00631cd9..e57322b4 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.223 2018/05/08 17:52:55 schwarze Exp $ */
+/* $Id: html.c,v 1.224 2018/05/08 21:42:34 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -187,6 +187,10 @@ print_gen_head(struct html *h)
print_endline(h);
print_text(h, "div.Pp { margin: 1ex 0ex; }");
print_endline(h);
+ print_text(h, "dl.Bl-diag ");
+ print_byte(h, '>');
+ print_text(h, " dt { font-weight: bold; }");
+ print_endline(h);
print_text(h, "code.Nm, code.Fl, code.Cm, code.Ic, "
"code.In, code.Fd, code.Fn,");
print_endline(h);