source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Delete the arbitrary range restriction for -Owidth.
@ 2017-06-13 15:07 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-06-13 15:07 UTC (permalink / raw)
  To: source

Log Message:
-----------
Delete the arbitrary range restriction for -Owidth.
We provide users with tools.  We don't attempt to prevent them from
using them in stupid ways: depending on the context, not every 
stupid-looking use is necessarily actually stupid, and not every
stupidity can be automatically detected anyway, so don't even try.

Modified Files:
--------------
    mdocml:
        mandoc.1
        manpath.c

Revision Data
-------------
Index: manpath.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/manpath.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -Lmanpath.c -Lmanpath.c -u -p -r1.33 -r1.34
--- manpath.c
+++ manpath.c
@@ -299,7 +299,7 @@ manconf_output(struct manoutput *conf, c
 			mandoc_asprintf(&oldval, "%zu", conf->width);
 			break;
 		}
-		conf->width = strtonum(cp, 58, 1000, &errstr);
+		conf->width = strtonum(cp, 1, 1000, &errstr);
 		if (errstr == NULL)
 			return 0;
 		warnx("-O width=%s is %s", cp, errstr);
Index: mandoc.1
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mandoc.1,v
retrieving revision 1.198
retrieving revision 1.199
diff -Lmandoc.1 -Lmandoc.1 -u -p -r1.198 -r1.199
--- mandoc.1
+++ mandoc.1
@@ -301,8 +301,7 @@ Increasing this is not recommended; it m
 for example overfull lines or ugly line breaks.
 .It Cm width Ns = Ns Ar width
 The output width is set to
-.Ar width ,
-which will normalise to \(>=58.
+.Ar width .
 .El
 .Ss HTML Output
 Output produced by
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

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

only message in thread, other threads:[~2017-06-13 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 15:07 mdocml: Delete the arbitrary range restriction for -Owidth 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).