diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-14 16:06:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-14 16:06:44 +0000 |
commit | 9ab0f1d2fbd0ca6762382443886903e11810663b (patch) | |
tree | 4100e951e358a5de21830f3f5d56dc5678a556bb /html.c | |
parent | ff3d7d9996ea5f017430919b824c15e1bf1a6e31 (diff) | |
download | mandoc-9ab0f1d2fbd0ca6762382443886903e11810663b.tar.gz mandoc-9ab0f1d2fbd0ca6762382443886903e11810663b.tar.zst mandoc-9ab0f1d2fbd0ca6762382443886903e11810663b.zip |
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 'html.c')
-rw-r--r-- | html.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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 <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |