source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: Delete support for style=margin-left attributes, which are no
@ 2018-06-25 14:14 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-06-25 14:14 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-25 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-25 14:14 mandoc: Delete support for style=margin-left attributes, which are no schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).