From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 455f97e1 for ; Mon, 25 Jun 2018 09:14:24 -0500 (EST) Date: Mon, 25 Jun 2018 09:14:24 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Delete support for style=margin-left attributes, which are no X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: Log Message: ----------- Delete support for style=margin-left attributes, which are no longer used. Modified Files: -------------- mandoc: html.c mandoc_html.3 Revision Data ------------- Index: mandoc_html.3 =================================================================== RCS file: /home/cvs/mandoc/mandoc/mandoc_html.3,v retrieving revision 1.15 retrieving revision 1.16 diff -Lmandoc_html.3 -Lmandoc_html.3 -u -p -r1.15 -r1.16 --- mandoc_html.3 +++ mandoc_html.3 @@ -220,11 +220,6 @@ argument type letters and style name let .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? Index: html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/html.c,v retrieving revision 1.236 retrieving revision 1.237 diff -Lhtml.c -Lhtml.c -u -p -r1.236 -r1.237 --- html.c +++ html.c @@ -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 /* 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; @@ -695,9 +690,6 @@ print_otag(struct html *h, enum htmltag switch (*fmt++) { case 'h': attr = "height"; - break; - case 'l': - attr = "margin-left"; break; case '?': attr = arg1; -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv