]> git.donarmstrong.com Git - perltidy.git/commitdiff
fix manual; the default for -mft=n is 0, not 40
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 27 Nov 2022 15:07:37 +0000 (07:07 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 27 Nov 2022 15:07:37 +0000 (07:07 -0800)
bin/perltidy
lib/Perl/Tidy.pm

index ec86b27b9b4228d1da93ca91de4ca3c697cacd36..a9239bfb413c022f86a20f4f07100d3cf88b6e2a 100755 (executable)
@@ -3432,14 +3432,12 @@ tables in the file must already be nicely formatted.
 
 =item B<-mft=n>,  B<--maximum-fields-per-table=n>
 
-If the computed number of fields for any table exceeds B<n>, then it
-will be reduced to B<n>.  The default value for B<n> is a large number,
-40.  While this value should probably be left unchanged as a general
-rule, it might be used on a small section of code to force a list to
-have a particular number of fields per line, and then either the B<-boc>
-flag could be used to retain this formatting, or a single comment could
-be introduced somewhere to freeze the formatting in future applications
-of perltidy.
+If B<n> is a positive number, and the computed number of fields for any table
+exceeds B<n>, then it will be reduced to B<n>.  This parameter might be used on
+a small section of code to force a list to have a particular number of fields
+per line, and then either the B<-boc> flag could be used to retain this
+formatting, or a single comment could be introduced somewhere to freeze the
+formatting in future applications of perltidy. For example
 
     # perltidy -mft=2
     @month_of_year = (
@@ -3451,6 +3449,9 @@ of perltidy.
         'Nov', 'Dec'
     );
 
+The default value is B<n=0>, which does not place a limit on the
+number of fields in a table.
+
 =item B<-cab=n>,  B<--comma-arrow-breakpoints=n>
 
 A comma which follows a comma arrow, '=>', is given special
index 6688d60f29519769b456e3d09ee473915774b85d..e91540439308ebb4273a2bd26b38cc66f8988c4a 100644 (file)
@@ -5352,7 +5352,7 @@ Outdenting
  -okwl=s specify alternative keywords for -okw command
 
 Other controls
- -mft=n  maximum fields per table; default n=40
+ -mft=n  maximum fields per table; default n=0 (no limit)
  -x      do not format lines before hash-bang line (i.e., for VMS)
  -asc    allows perltidy to add a ';' when missing (default)
  -dsm    allows perltidy to delete an unnecessary ';'  (default)