summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-07-14 16:05:53 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-07-14 16:05:53 +0000
commitbeceb6e45bbd13816725262d25deaad63c6fa051 (patch)
tree7b2a09232eb61d3e0931081d9c6348f7761050e3 /usr.bin/mandoc/html.c
parentfc94cf20e69d1211c04f98cac4c20ed4390f5955 (diff)
Handle .Bl -compact via CSS rather than writing individual style
attributes into .It blocks; suggested by Steffen Nurpmeso <steffen at sdaoden dot eu> on <groff at GNU dot org> in April 2017. Delete margin-bottom and margin-top style names and the 'v' argument letter from print_otag() because they are no longer used.
Diffstat (limited to 'usr.bin/mandoc/html.c')
-rw-r--r--usr.bin/mandoc/html.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.bin/mandoc/html.c b/usr.bin/mandoc/html.c
index 8e7ccc1bf8a..74f57b915ee 100644
--- a/usr.bin/mandoc/html.c
+++ b/usr.bin/mandoc/html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: html.c,v 1.86 2017/07/14 15:26:14 bentley Exp $ */
+/* $OpenBSD: html.c,v 1.87 2017/07/14 16:05:52 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -621,11 +621,6 @@ print_otag(struct html *h, enum htmltag tag, const char *fmt, ...)
case 'u':
su = va_arg(ap, struct roffsu *);
break;
- case 'v':
- i = va_arg(ap, int);
- su = &mysu;
- SCALE_VS_INIT(su, i);
- break;
case 'w':
if ((arg2 = va_arg(ap, char *)) == NULL)
break;
@@ -650,9 +645,6 @@ print_otag(struct html *h, enum htmltag tag, const char *fmt, ...)
/* Second letter: style name. */
switch (*fmt++) {
- case 'b':
- attr = "margin-bottom";
- break;
case 'h':
attr = "height";
break;
@@ -662,9 +654,6 @@ print_otag(struct html *h, enum htmltag tag, const char *fmt, ...)
case 'l':
attr = "margin-left";
break;
- case 't':
- attr = "margin-top";
- break;
case 'w':
attr = "width";
break;