From 9ab0f1d2fbd0ca6762382443886903e11810663b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 14 Jul 2017 16:06:44 +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. --- html.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 1cc615cc..c6442783 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.216 2017/07/14 15:56:37 schwarze Exp $ */ +/* $Id: html.c,v 1.217 2017/07/14 16:06:44 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017 Ingo Schwarze @@ -623,11 +623,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; @@ -652,9 +647,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; @@ -664,9 +656,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