From 71c6c9944e8dbd01f140b4ab78b5baad2a681ac9 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Sun, 27 Nov 2022 07:07:37 -0800 Subject: [PATCH] fix manual; the default for -mft=n is 0, not 40 --- bin/perltidy | 17 +++++++++-------- lib/Perl/Tidy.pm | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bin/perltidy b/bin/perltidy index ec86b27b..a9239bfb 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -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, then it -will be reduced to B. The default value for B 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 is a positive number, and the computed number of fields for any table +exceeds B, then it will be reduced to B. 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, 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 diff --git a/lib/Perl/Tidy.pm b/lib/Perl/Tidy.pm index 6688d60f..e9154043 100644 --- a/lib/Perl/Tidy.pm +++ b/lib/Perl/Tidy.pm @@ -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) -- 2.39.5