aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-06-25 14:13:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-06-25 14:13:54 +0000
commit43aad0f89789ab26d47deeb9bf1361069e817ce9 (patch)
treeb5187edcdcac4bb816370720df717564cdb5a143
parentcab8a64b18366a08e39d04444e5378d33fa153ed (diff)
downloadmandoc-43aad0f89789ab26d47deeb9bf1361069e817ce9.tar.gz
mandoc-43aad0f89789ab26d47deeb9bf1361069e817ce9.tar.zst
mandoc-43aad0f89789ab26d47deeb9bf1361069e817ce9.zip
Delete support for style=margin-left attributes, which are no longer used.
-rw-r--r--html.c14
-rw-r--r--mandoc_html.311
2 files changed, 4 insertions, 21 deletions
diff --git a/html.c b/html.c
index 94cef1ee..4c19bbea 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.236 2018/06/25 14:00:28 schwarze Exp $ */
+/* $Id: html.c,v 1.237 2018/06/25 14:13:54 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -553,13 +553,13 @@ struct tag *
print_otag(struct html *h, enum htmltag tag, const char *fmt, ...)
{
va_list ap;
- struct roffsu mysu, *su;
+ struct roffsu *su;
char numbuf[16];
struct tag *t;
const char *attr;
char *arg1, *arg2;
double v;
- int i, have_style, tflags;
+ int have_style, tflags;
tflags = htmltags[tag].flags;
@@ -675,11 +675,6 @@ print_otag(struct html *h, enum htmltag tag, const char *fmt, ...)
/* First letter: input argument type. */
switch (*fmt++) {
- case 'h':
- i = va_arg(ap, int);
- su = &mysu;
- SCALE_HS_INIT(su, i);
- break;
case 's':
arg1 = va_arg(ap, char *);
break;
@@ -696,9 +691,6 @@ print_otag(struct html *h, enum htmltag tag, const char *fmt, ...)
case 'h':
attr = "height";
break;
- case 'l':
- attr = "margin-left";
- break;
case '?':
attr = arg1;
arg1 = va_arg(ap, char *);
diff --git a/mandoc_html.3 b/mandoc_html.3
index b99a63bd..639eb369 100644
--- a/mandoc_html.3
+++ b/mandoc_html.3
@@ -1,4 +1,4 @@
-.\" $Id: mandoc_html.3,v 1.15 2018/06/25 14:00:28 schwarze Exp $
+.\" $Id: mandoc_html.3,v 1.16 2018/06/25 14:13:54 schwarze Exp $
.\"
.\" Copyright (c) 2014, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
.\"
@@ -220,11 +220,6 @@ argument type letters and style name letters.
.Pp
Argument type letters each require one argument as follows:
.Bl -tag -width 1n -offset indent
-.It Cm h
-Requires one
-.Vt int
-argument, interpreted as a horizontal length in units of
-.Dv SCALE_EN .
.It Cm s
Requires one
.Vt char *
@@ -237,10 +232,6 @@ argument, used as a length.
.Pp
Style name letters decide what to do with the preceding argument:
.Bl -tag -width 1n -offset indent
-.It Cm l
-Set
-.Cm margin-left
-to the given length.
.It Cm \&?
The special pair
.Cm s?