X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=CHANGES;h=0afa2c7eb5721a345ca64e2c1a216cac3fb7add6;hb=34b3777600051acca2102af4931271eb87dbbf27;hp=2182657737d36844b58649ad7195b646cc425833;hpb=8aa69fbac36a21cad0a1c0d5b3452a546d427d7f;p=perltidy.git diff --git a/CHANGES b/CHANGES index 2182657..0afa2c7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,69 @@ Perltidy Change Log + 2007 08 01 + -Added -fpsc option (--fixed-position-side-comment). Thanks to Ueli Hugenschmidt. + For example -fpsc=40 tells perltidy to put side comments in column 40 + if possible. + + -Added -bbao and -baao options (--break-before-all-operators and + --break-after-all-operators) to simplify command lines and configuration + files. These define an initial preference for breaking at operators which can + be modified with -wba and -wbb flags. For example to break before all operators + except an = one could use --bbao -wba='=' rather than listing every + single perl operator (except =) on a -wbb flag. + + -Added -kis option (--keep-interior-semicolons). Use the B<-kis> flag + to prevent breaking at a semicolon if there was no break there in the + input flag. To illustrate, consider the following input lines: + + dbmclose(%verb_delim); undef %verb_delim; + dbmclose(%expanded); undef %expanded; + dbmclose(%global); undef %global; + + Normally these would be broken into six lines, but + perltidy -kis gives: + + dbmclose(%verb_delim); undef %verb_delim; + dbmclose(%expanded); undef %expanded; + dbmclose(%global); undef %global; + + -Improved formatting of complex ternary statements, with indentation + of nested statements. + OLD: + return defined( $cw->{Selected} ) + ? (wantarray) + ? @{ $cw->{Selected} } + : $cw->{Selected}[0] + : undef; + + NEW: + return defined( $cw->{Selected} ) + ? (wantarray) + ? @{ $cw->{Selected} } + : $cw->{Selected}[0] + : undef; + + -Text following un-parenthesized if/unless/while/until statements get a + full level of indentation. Suggested by Jeff Armstorng and others. + OLD: + return $ship->chargeWeapons("phaser-canon") + if $encounter->description eq 'klingon' + and $ship->firepower >= $encounter->firepower + and $location->status ne 'neutral'; + NEW: + return $ship->chargeWeapons("phaser-canon") + if $encounter->description eq 'klingon' + and $ship->firepower >= $encounter->firepower + and $location->status ne 'neutral'; + + 2007 05 08 + -Fixed bug where #line directives were being indented. Thanks to + Philippe Bruhat. + + 2007 05 04 + -Fixed problem where an extra blank line was added after an =cut when either + (a) the =cut started (not stopped) a POD section, or (b) -mbl > 1. + Thanks to J. Robert Ray and Bill Moseley. + 2007 04 24 -ole (--output-line-ending) and -ple (--preserve-line-endings) should now work on all systems rather than just unix systems. Thanks to Dan @@ -59,7 +124,7 @@ Perltidy Change Log replacement text (but does not reformat it). -improved vertical alignment of terminal else blocks and ternary statements. - thanks to chris for the suggestion. + Thanks to Chris for the suggestion. OLD: if ( IsBitmap() ) { return GetBitmap(); } @@ -193,7 +258,7 @@ Perltidy Change Log The default is not to do this. Suggested by H.Merijn Brand. -Added patch to avoid breaking GetOpt::Long::Configure set by calling program. - Thanks to BOOK at CPAN. + Thanks to Philippe Bruhat. -An error was fixed in which certain parameters in a .perltidyrc file given without the equals sign were not recognized. That is,