From beceb6e45bbd13816725262d25deaad63c6fa051 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 14 Jul 2017 16:05:53 +0000 Subject: Handle .Bl -compact via CSS rather than writing individual style attributes into .It blocks; suggested by Steffen Nurpmeso on 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. --- usr.bin/mandoc/html.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'usr.bin/mandoc/html.c') 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 * Copyright (c) 2011-2015, 2017 Ingo Schwarze @@ -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; -- cgit v1.2.3