head 1.33; access; symbols pkgsrc-2023Q4:1.33.0.4 pkgsrc-2023Q4-base:1.33 pkgsrc-2023Q3:1.33.0.2 pkgsrc-2023Q3-base:1.33 pkgsrc-2023Q2:1.32.0.2 pkgsrc-2023Q2-base:1.32 pkgsrc-2023Q1:1.31.0.8 pkgsrc-2023Q1-base:1.31 pkgsrc-2022Q4:1.31.0.6 pkgsrc-2022Q4-base:1.31 pkgsrc-2022Q3:1.31.0.4 pkgsrc-2022Q3-base:1.31 pkgsrc-2022Q2:1.31.0.2 pkgsrc-2022Q2-base:1.31 pkgsrc-2022Q1:1.30.0.4 pkgsrc-2022Q1-base:1.30 pkgsrc-2021Q4:1.30.0.2 pkgsrc-2021Q4-base:1.30 pkgsrc-2021Q3:1.27.0.2 pkgsrc-2021Q3-base:1.27 pkgsrc-2021Q2:1.26.0.8 pkgsrc-2021Q2-base:1.26 pkgsrc-2021Q1:1.26.0.6 pkgsrc-2021Q1-base:1.26 pkgsrc-2020Q4:1.26.0.4 pkgsrc-2020Q4-base:1.26 pkgsrc-2020Q3:1.26.0.2 pkgsrc-2020Q3-base:1.26 pkgsrc-2020Q2:1.24.0.4 pkgsrc-2020Q2-base:1.24 pkgsrc-2020Q1:1.24.0.2 pkgsrc-2020Q1-base:1.24 pkgsrc-2019Q4:1.22.0.4 pkgsrc-2019Q4-base:1.22 pkgsrc-2019Q3:1.21.0.8 pkgsrc-2019Q3-base:1.21 pkgsrc-2019Q2:1.21.0.6 pkgsrc-2019Q2-base:1.21 pkgsrc-2019Q1:1.21.0.4 pkgsrc-2019Q1-base:1.21 pkgsrc-2018Q4:1.21.0.2 pkgsrc-2018Q4-base:1.21 pkgsrc-2018Q3:1.20.0.6 pkgsrc-2018Q3-base:1.20 pkgsrc-2018Q2:1.20.0.4 pkgsrc-2018Q2-base:1.20 pkgsrc-2018Q1:1.20.0.2 pkgsrc-2018Q1-base:1.20 pkgsrc-2017Q4:1.17.0.6 pkgsrc-2017Q4-base:1.17 pkgsrc-2017Q3:1.17.0.4 pkgsrc-2017Q3-base:1.17 pkgsrc-2017Q2:1.16.0.12 pkgsrc-2017Q2-base:1.16 pkgsrc-2017Q1:1.16.0.10 pkgsrc-2017Q1-base:1.16 pkgsrc-2016Q4:1.16.0.8 pkgsrc-2016Q4-base:1.16 pkgsrc-2016Q3:1.16.0.6 pkgsrc-2016Q3-base:1.16 pkgsrc-2016Q2:1.16.0.4 pkgsrc-2016Q2-base:1.16 pkgsrc-2016Q1:1.16.0.2 pkgsrc-2016Q1-base:1.16 pkgsrc-2015Q4:1.15.0.2 pkgsrc-2015Q4-base:1.15 pkgsrc-2015Q3:1.14.0.2 pkgsrc-2015Q3-base:1.14 pkgsrc-2015Q2:1.13.0.8 pkgsrc-2015Q2-base:1.13 pkgsrc-2015Q1:1.13.0.6 pkgsrc-2015Q1-base:1.13 pkgsrc-2014Q4:1.13.0.4 pkgsrc-2014Q4-base:1.13 pkgsrc-2014Q3:1.13.0.2 pkgsrc-2014Q3-base:1.13 pkgsrc-2014Q2:1.12.0.2 pkgsrc-2014Q2-base:1.12 pkgsrc-2014Q1:1.11.0.4 pkgsrc-2014Q1-base:1.11 pkgsrc-2013Q4:1.11.0.2 pkgsrc-2013Q4-base:1.11 pkgsrc-2013Q3:1.10.0.10 pkgsrc-2013Q3-base:1.10 pkgsrc-2013Q2:1.10.0.8 pkgsrc-2013Q2-base:1.10 pkgsrc-2013Q1:1.10.0.6 pkgsrc-2013Q1-base:1.10 pkgsrc-2012Q4:1.10.0.4 pkgsrc-2012Q4-base:1.10 pkgsrc-2012Q3:1.10.0.2 pkgsrc-2012Q3-base:1.10 pkgsrc-2012Q2:1.8.0.8 pkgsrc-2012Q2-base:1.8 pkgsrc-2012Q1:1.8.0.6 pkgsrc-2012Q1-base:1.8 pkgsrc-2011Q4:1.8.0.4 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q3:1.8.0.2 pkgsrc-2011Q3-base:1.8 pkgsrc-2011Q2:1.7.0.16 pkgsrc-2011Q2-base:1.7 pkgsrc-2011Q1:1.7.0.14 pkgsrc-2011Q1-base:1.7 pkgsrc-2010Q4:1.7.0.12 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.10 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.8 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.6 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.4 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.2 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.6.0.6 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.4 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.2 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.5.0.16 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.14 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.12 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.10 pkgsrc-2008Q1:1.5.0.8 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.6 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.4 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.2 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.3.0.18 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.16 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.14 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.12 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.10 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.8 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.6 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.4 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.2 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.1.1.1.0.8 pkgsrc-2004Q4-base:1.1.1.1 pkgsrc-2004Q3:1.1.1.1.0.6 pkgsrc-2004Q3-base:1.1.1.1 pkgsrc-2004Q2:1.1.1.1.0.4 pkgsrc-2004Q2-base:1.1.1.1 pkgsrc-2004Q1:1.1.1.1.0.2 pkgsrc-2004Q1-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.33 date 2023.08.03.07.13.23; author wen; state Exp; branches; next 1.32; commitid JCcrGsFuWx3vhjzE; 1.32 date 2023.04.29.22.55.13; author wen; state Exp; branches; next 1.31; commitid ZhUbkNwoRxpQz3nE; 1.31 date 2022.04.30.03.05.54; author wen; state Exp; branches; next 1.30; commitid fn4M1dzXYUagHaCD; 1.30 date 2021.11.07.00.15.13; author wen; state Exp; branches; next 1.29; commitid R0nsZDxAk85qlNfD; 1.29 date 2021.10.26.10.17.19; author nia; state Exp; branches; next 1.28; commitid XMBRkrafc79x2jeD; 1.28 date 2021.10.07.13.42.09; author nia; state Exp; branches; next 1.27; commitid TK9Y8OXA04EYMSbD; 1.27 date 2021.08.20.23.58.06; author wen; state Exp; branches; next 1.26; commitid 8r3IGWK9y343LL5D; 1.26 date 2020.09.13.07.54.02; author wiz; state Exp; branches; next 1.25; commitid 5xGfqj94JiJCnRnC; 1.25 date 2020.09.07.09.50.47; author wiz; state Exp; branches; next 1.24; commitid CZ0RR8sIkUP0e6nC; 1.24 date 2020.03.25.11.18.31; author nia; state Exp; branches; next 1.23; commitid anfSJsqY6W4T2M1C; 1.23 date 2020.01.07.13.35.06; author wen; state Exp; branches; next 1.22; commitid JQOS0rljxat9jLRB; 1.22 date 2019.10.27.14.04.38; author mef; state Exp; branches; next 1.21; commitid ejo1yLvvOelGMvIB; 1.21 date 2018.11.25.14.51.02; author wen; state Exp; branches; next 1.20; commitid sZObpQsKd7F3Qk1B; 1.20 date 2018.02.21.07.39.42; author wen; state Exp; branches; next 1.19; commitid vOmDRkpcliwgmHrA; 1.19 date 2018.01.03.07.51.23; author wiz; state Exp; branches; next 1.18; commitid pelM5XSFces30plA; 1.18 date 2017.12.30.12.47.21; author wen; state Exp; branches; next 1.17; commitid nmJpynXxE89nLUkA; 1.17 date 2017.09.17.12.52.57; author wiz; state Exp; branches; next 1.16; commitid 4VIryf7D1fAI8y7A; 1.16 date 2016.03.04.13.06.58; author wen; state Exp; branches; next 1.15; commitid BaDMy5swTlKzhkXy; 1.15 date 2015.11.03.03.28.40; author agc; state Exp; branches; next 1.14; commitid XagoUgdES8g2ZAHy; 1.14 date 2015.08.15.23.04.54; author mef; state Exp; branches; next 1.13; commitid ZesllTLM2c1Q4qxy; 1.13 date 2014.07.17.12.47.17; author wen; state Exp; branches; next 1.12; commitid 2sm8Va4tUOWpkJIx; 1.12 date 2014.05.09.07.30.09; author wen; state Exp; branches; next 1.11; commitid AmNKX8xrkwggNPzx; 1.11 date 2013.10.15.14.54.17; author wen; state Exp; branches; next 1.10; commitid wFtDfZJzhQfERo9x; 1.10 date 2012.09.13.16.03.16; author sno; state Exp; branches; next 1.9; 1.9 date 2012.07.06.09.28.32; author sno; state Exp; branches; next 1.8; 1.8 date 2011.08.16.23.04.17; author wiz; state Exp; branches; next 1.7; 1.7 date 2009.07.07.20.05.26; author sno; state Exp; branches; next 1.6; 1.6 date 2008.12.18.23.22.21; author he; state Exp; branches; next 1.5; 1.5 date 2007.06.10.08.42.10; author obache; state Exp; branches; next 1.4; 1.4 date 2007.05.01.11.27.51; author abs; state Exp; branches; next 1.3; 1.3 date 2005.02.23.22.24.28; author agc; state Exp; branches; next 1.2; 1.2 date 2005.02.04.14.35.19; author wiz; state Exp; branches; next 1.1; 1.1 date 2004.02.22.01.58.09; author minskim; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2004.02.22.01.58.09; author minskim; state Exp; branches; next ; desc @@ 1.33 log @Update to 20230701 Upstream changes: ## 2023 07 01 - Issue git #121. Added parameters -xbt, or --extended-block-tightness, and -xbtl=s, or --extended-block-tightness-list=s, to allow certain small code blocks to have internal spacing controlled by -bbt=n rather than -bt=n. The man pages have details. - Issue git #118. A warning will be issued if a duplicate format-skipping starting marker is seen within a format-skipping section. The same applies to duplicate code-skipping starting markers within code-skipping sections. - Issue git #116. A new flag --valign-if-unless, -viu, was added to allow postfix 'unless' terms to align with postfix 'if' terms. The default remains not to do this. - Fixed git #115. In the two most recent CPAN releases, when the Perl::Tidy module was called with the source pointing to a file, but no destination specified, the output went to the standard output instead of to a file with extension ``.tdy``, as it should have. This has been fixed. - Fixed git #110, add missing documentation for new options -cpb and -bfvt=n. These work in version 20230309 but the pod documentation was missing and has been added. - Fixed an undefined reference message when running with --dump-block-summary on a file without any subs or other selected block types. - Add parameter -ipc, or --ignore-perlcritic-comments. Perltidy, by default, will look for side comments beginning with ``## no critic`` and ignore their lengths when making line break decisions, even if the user has not set ``-iscl``. The reason is that an unwanted line break can make these special comments ineffective in controlling ``perlcritic``. The parameter -ipc can be set if, for some reason, this is not wanted. - Some minor issues with continuation indentation have been fixed. Most scripts will remain unchanged. The main change is that block comments which occur just before a closing brace, bracket or paren now have an indentation which is independent of the existance of an optional comma or semicolon. Previously, adding or deleting an optional trailing comma could cause their indentation to jump. Also, indentation of comments within ternary statements has been improved. For additonal details see: https://github.com/perltidy/perltidy/blob/master/docs/ci_update.md - This version was stress-tested for many cpu hours with random input parameters. No failures to converge, internal fault checks, undefined variable references or other irregularities were seen. - This version runs several percent faster than the previous release on large files. @ text @$NetBSD: distinfo,v 1.32 2023/04/29 22:55:13 wen Exp $ BLAKE2s (Perl-Tidy-20230701.tar.gz) = 5dbffe2fb3736e1fb815d6e1591f39ca1ac0d2f330370495c4e9c62cdb2c19b4 SHA512 (Perl-Tidy-20230701.tar.gz) = 29f8607d366644f9d08311f8bc508426a63e6fe8062d5ddbeb9f4ceb53b38a68f46b3f39c58ab0998ea3ce13998be430a7ef57130e0e3964798db9af07cf4a4c Size (Perl-Tidy-20230701.tar.gz) = 982458 bytes @ 1.32 log @Update to 20230309 Upstream changelog is too long, please visit: https://metacpan.org/dist/Perl-Tidy/changes @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.31 2022/04/30 03:05:54 wen Exp $ d3 3 a5 3 BLAKE2s (Perl-Tidy-20230309.tar.gz) = a242f3459142ee00a14337f381b6032d4afd8f0a3401f806a3cd3c72d232b68f SHA512 (Perl-Tidy-20230309.tar.gz) = 5b29b10fe758a59e13126b4b050c2f82c82e925cc99f832c47ba6393014d42b10d963630aa98e590dda5cccfaca4810c8244cbb48ddde975a30781061414b034 Size (Perl-Tidy-20230309.tar.gz) = 960052 bytes @ 1.31 log @Update to 20220217 Upstream changelog is too long, please visit: https://metacpan.org/dist/Perl-Tidy/changes @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.30 2021/11/07 00:15:13 wen Exp $ d3 3 a5 3 BLAKE2s (Perl-Tidy-20220217.tar.gz) = 77f51d0f0f5b53702d1ed90706e7213fa06be7a13832b365598cce930ed3f534 SHA512 (Perl-Tidy-20220217.tar.gz) = 696c35469f807e075fa41959e01c01d2f70ea7cd36caca60b82cade72ded011b969c682c3ac60bcc0f0e92475012efd568179c6430a138df50ad68760e1758dc Size (Perl-Tidy-20220217.tar.gz) = 887121 bytes @ 1.30 log @Update to 20211029 Upstream changes: ## 2021 10 29 - No significant bugs have been found since the last release, but several minor issues have been fixed. Vertical alignment has been improved for lists of call args which are not contained within parens (next item). - Vertical alignment of function calls without parens has been improved with the goal of making vertical alignment essentially the same with or without parens around the call args. Some examples: # OLD mkTextConfig $c, $x, $y, -anchor => 'se', $color; mkTextConfig $c, $x + 30, $y, -anchor => 's', $color; mkTextConfig $c, $x + 60, $y, -anchor => 'sw', $color; mkTextConfig $c, $x, $y + 30, -anchor => 'e', $color; # NEW mkTextConfig $c, $x, $y, -anchor => 'se', $color; mkTextConfig $c, $x + 30, $y, -anchor => 's', $color; mkTextConfig $c, $x + 60, $y, -anchor => 'sw', $color; mkTextConfig $c, $x, $y + 30, -anchor => 'e', $color; # OLD is id_2obj($id), undef, "unregistered object not retrieved"; is scalar keys %$ob_reg, 0, "object registry empty"; is register($obj), $obj, "object returned by register"; is scalar keys %$ob_reg, 1, "object registry nonempty"; is id_2obj($id), $obj, "registered object retrieved"; # NEW is id_2obj($id), undef, "unregistered object not retrieved"; is scalar keys %$ob_reg, 0, "object registry empty"; is register($obj), $obj, "object returned by register"; is scalar keys %$ob_reg, 1, "object registry nonempty"; is id_2obj($id), $obj, "registered object retrieved"; This will cause some changes in alignment, hopefully for the better, particularly in test code which often uses numerous parenless function calls with functions like 'ok', 'is', 'is_deeply', .... - Two new parameters were added to control the block types to which the -bl (--opening-brace-on-new-line) flag applies. The new parameters are -block-left-list=s, or -bll=s, and --block-left-exclusion-list=s, or -blxl=s. Previously the -bl flag was 'hardwired' to apply to nearly all blocks. The default values of the new parameters retain the the old default behavior but allow it to be changed. - The default behavior of the -bli (-brace-left-and-indent) flag has changed slightly. Previously, if you set -bli, then the -bl flag would also automatically be set. Consequently, block types which were not included in the default list for -bli would get -bl formatting. This is no longer done, and these two styles are now controlled independently. The manual describes the controls. If you want to recover the exact previous default behavior of the -bli then add the -bl flag. - A partial fix was made for issue for git #74. The -lp formatting style was being lost when a one-line anonymous sub was followed by a closing brace. - Fixed issue git #73, in which the -nfpva flag was not working correctly. Some unwanted vertical alignments of spaced function perens were being made. - Updated the man pages to clarify the flags -valign and -novalign for turning vertical alignment on and off (issue git #72). Added parameters -vc -vsc -vbc for separately turning off vertical alignment of code, side comments and block comments. - Fixed issue git #68, where a blank line following a closing code-skipping comment, '#>>V', could be lost. - This version runs 10 to 15 percent faster on large files than the previous release due to optimizations made with the help of NYTProf. - This version of perltidy was stress-tested for many cpu hours with random input parameters. No instabilities, internal fault checks, undefined variable references or other irregularities were seen. - Numerous minor fixes have been made, mostly very rare formatting instabilities found in random testing. An effort has been made to minimize changes to existing formatting that these fixes produce, but occasional changes may occur. Many of these updates are listed at: https://github.com/perltidy/perltidy/blob/master/local-docs/BugLog.pod @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.29 2021/10/26 10:17:19 nia Exp $ d3 3 a5 3 BLAKE2s (Perl-Tidy-20211029.tar.gz) = 4054255d5600a9dcb64c85f2274d22c469ae7c1cc52dbe9bce7ae27def19b7ca SHA512 (Perl-Tidy-20211029.tar.gz) = a164a986b840be19090ed661b94179dfb1acf36ac95e30e886fc28f93fa0a418d83c99cec7ee7443b2bf276fe517018df53847b2045490cc8dfb0640d702d8ba Size (Perl-Tidy-20211029.tar.gz) = 850004 bytes @ 1.29 log @archivers: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes Could not be committed due to merge conflict: devel/py-traitlets/distinfo The following distfiles were unfetchable (note: some may be only fetched conditionally): ./devel/pvs/distinfo pvs-3.2-solaris.tgz ./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.28 2021/10/07 13:42:09 nia Exp $ d3 3 a5 3 BLAKE2s (Perl-Tidy-20210717.tar.gz) = e38cdb07b0c5de8921f2533c57590782ff51dd6a92f5b8c0fa206929dd4e425f SHA512 (Perl-Tidy-20210717.tar.gz) = ccc090cb6ffbd803fbaddde3a99391bd07a97fb47d20515c3f3e58c69a1404824a5bb9aa3cbfea6b2119f7140552fde3bc2361d3ea8904a875973817446578b1 Size (Perl-Tidy-20210717.tar.gz) = 814449 bytes @ 1.28 log @devel: Remove SHA1 hashes for distfiles @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.27 2021/08/20 23:58:06 wen Exp $ d3 1 a3 1 RMD160 (Perl-Tidy-20210717.tar.gz) = 2af844f7fc911e40347e0a5526740f556ee5eef4 @ 1.27 log @Update to 20210717 Upstream changes please visit: https://metacpan.org/dist/Perl-Tidy/changes @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.26 2020/09/13 07:54:02 wiz Exp $ a2 1 SHA1 (Perl-Tidy-20210717.tar.gz) = 2fa7559ba750f7b58ce182a10ebfccadeba803f9 @ 1.26 log @p5-Perl-Tidy: update to 20200907. ## 2020 09 07 - Fixed bug git #37, an error when the combination -scbb -csc was used. It occurs in perltidy versions 20200110, 20200619, and 20200822. What happens is that when two consecutive lines with isolated closing braces had new side comments generated by the -csc parameter, a separating newline was missing. The resulting script will not then run, but worse, if it is reformatted with the same parameters then closing side comments could be overwritten and data lost. This problem was found during automated random testing. The parameter -scbb is rarely used, which is probably why this has not been reported. Please upgrade your version. - Added parameter --non-indenting-braces, or -nib, which prevents code from indenting one level if it follows an opening brace marked with a special side comment, '#<<<'. For example, { #<<< a closure to contain lexical vars my $var; # this line does not indent } # this line cannot 'see' $var; This is on by default. If your code happens to have some opening braces followed by '#<<<', and you don't want this, you can use -nnib to deactivate it. - Side comment locations reset at a line ending in a level 0 open block, such as when a new multi-line sub begins. This is intended to help keep side comments from drifting to far to the right. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.25 2020/09/07 09:50:47 wiz Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20200907.tar.gz) = 6c7fcda3a6dd2bcc15cb82168d108503d5d2b00c RMD160 (Perl-Tidy-20200907.tar.gz) = 7f3ec3f4788ec50a260a2d99b1b608e5101d400e SHA512 (Perl-Tidy-20200907.tar.gz) = 047a724b8fabc32ab2db3b3ba7f64fb244de4dbb55eb2c0df7cd4991876791c9e6bff238662f8c103ea180a7231f393211fe1649456b7c0b5d62fac14c349f37 Size (Perl-Tidy-20200907.tar.gz) = 666105 bytes @ 1.25 log @p5-Perl-Tidy: update to 20200822. ## 2020 08 22 - Fix RT #133166, encoding not set for -st. Also reported as RT #133171 and git #35. This is a significant bug in version 20200616 which can corrupt data if perltidy is run as a filter on encoded text. **Please upgrade** - Fix issue RT #133161, perltidy -html was not working on pod - Fix issue git #33, allow control of space after '->' - Vertical alignment has been improved. Numerous minor issues have been fixed. - Formatting with the -lp option is improved. - Fixed issue git #32, misparse of bare 'ref' in ternary - When --assert-tidy is used and triggers an error, the first difference between input and output files is shown in the error output. This is a partial response to issue git #30. ## 2020 06 19 - Added support for Switch::Plain syntax, issue git #31. - Fixed minor problem where trailing 'unless' clauses were not getting vertically aligned. - Added a parameter --logical-padding or -lop to allow logical padding to be turned off. Requested by git #29. This flag is on by default. The man pages have examples. - Added a parameter -kpit=n to control spaces inside of parens following certain keywords, requested in git#26. This flag is off by default. - Added fix for git#25, improve vertical alignment for long lists with varying numbers of items per line. - calls to the module Perl::Tidy can now capture any output produced by a debug flag or one of the 'tee' flags through the new 'debugfile' and 'teefile' call parameters. These output streams are rarely used but they are now treated the same as any 'logfile' stream. - add option --break-at-old-semicolon-breakpoints', -bos, requested in RT#131644. This flag will keep lines beginning with a semicolon. - Added --use-unicode-gcstring to control use of Unicode::GCString for evaluating character widths of encoded data. The default is not to use this (--nouse-unicode-gcstring). If this flag is set, perltidy will look for Unicode::GCString and, if found, will use it to evaluate character display widths. This can improve displayed vertical alignment for files with wide characters. It is a nice feature but it is off by default to avoid conflicting formatting when there are multiple developers. Perltidy installation does not require Unicode::GCString, so users wanting to use this feature need set this flag and also to install Unicode::GCString separately. - Added --character-encoding=guess or -guess to have perltidy guess if a file (or other input stream) is encoded as -utf8 or some other single-byte encoding. This is useful when processing a mixture of file types, such as utf8 and latin-1. Please Note: The default encoding has been set to be 'guess' instead of 'none'. This seems like the best default, since it allows perltidy work properly with both utf8 files and older latin-1 files. The guess mode uses Encode::Guess, which is included in standard perl distributions, and only tries to guess if a file is utf8 or not, never any other encoding. If the guess is utf8, and if the file successfully decodes as utf8, then it the encoding is assumed to be utf8. Otherwise, no encoding is assumed. If you do not want to use this new default guess mode, or have a problem with it, you can set --character-encoding=none (the previous default) or --character-encoding=utf8 (if you deal with utf8 files). - Specific encodings of input files other than utf8 may now be given, for example --character-encoding=euc-jp. - Fix for git#22, Preserve function signature on a single line. An unwanted line break was being introduced when a closing signature paren followed a closing do brace. - Fix RT#132059, the -dac parameter was not working and caused an error exit - When -utf8 is used, any error output is encoded as utf8 - Fix for git#19, adjust line break around an 'xor' - Fix for git#18, added warning for missing comma before unknown bare word. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.24 2020/03/25 11:18:31 nia Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20200822.tar.gz) = 37c48d7acfb36eab5fdc8f39a69cf74c734cb332 RMD160 (Perl-Tidy-20200822.tar.gz) = 110900bc0797c34cf0982586f43f2e11e099f843 SHA512 (Perl-Tidy-20200822.tar.gz) = 9fef4b27ea3077720a534eaccfb3895e75600d486822d390f213e4edc168293a657f11292836942e4dc522d1593b5199cd6a46bb6a8d870152cccf57964762ef Size (Perl-Tidy-20200822.tar.gz) = 657209 bytes @ 1.24 log @p5-Perl-Tidy: Update to 20200110 ## 2020 01 10 - This release adds a flag to control the feature RT#130394 (allow short nested blocks) introduced in the previous release. Unfortunately that feature breaks RPerl installations, so a control flag has been introduced and that feature is now off by default. The flag is: --one-line-block-nesting=n, or -olbn=n, where n is an integer as follows: -olbn=0 break nested one-line blocks into multiple lines [new DEFAULT] -olbn=1 stable; keep existing nested-one line blocks intact [previous DEFAULT] For example, consider this input line: foreach (@@list) { if ($_ eq $asked_for) { last } ++$found } The new default behavior (-olbn=0), and behavior prior to version 20191203, is to break it into multiple lines: foreach (@@list) { if ( $_ eq $asked_for ) { last } ++$found; } To keep nested one-line blocks such as this on a single line you can add the parameter -olbn=1. - Fixed issue RT#131288: parse error for un-prototyped constant function without parenthesized call parameters followed by ternary. - Fixed issue RT#131360, installation documentation. Added a note that the binary 'perltidy' comes with the Perl::Tidy module. They can both normally be installed with 'cpanm Perl::Tidy' @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.23 2020/01/07 13:35:06 wen Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20200110.tar.gz) = 8d5067fb03a4069f316500cd796770871afee24e RMD160 (Perl-Tidy-20200110.tar.gz) = 060fc9293c211136db96e2474b49146d65a7dd4d SHA512 (Perl-Tidy-20200110.tar.gz) = 6ff931bed73d5006752ac5c14e893700126a41657f4286b86a5b0adf3963d4fa77bb9dd007f10c096960bcb9fa92aa7e3666e52219fecbc2a0077054d0c5a171 Size (Perl-Tidy-20200110.tar.gz) = 611243 bytes @ 1.23 log @Update to 20191203 Upstream changes: 2019 12 03 - Fixed issue RT#131115: -bli option not working correctly. Closing braces were not indented in some cases due to a glitch introduced in version 20181120. - Fixed issue RT#130394: Allow short nested blocks. Given the following $factorial = sub { reduce { $a * $b } 1 .. 11 }; Previous versions would always break the sub block because it contains another block (the reduce block). The fix keeps short one-line blocks such as this intact. - Implement issue RT#130640: Allow different subroutine keywords. Added a flag --sub-alias-list=s or -sal=s, where s is a string with one or more aliases for 'sub', separated by spaces or commas. For example, perltidy -sal='method fun' will cause the perltidy to treat the words 'method' and 'fun' to be treated the same as if they were 'sub'. - Added flag --space-prototype-paren=i, or -spp=i, to control spacing before the opening paren of a prototype, where i=0, 1, or 2: i=0 no space i=1 follow input [current and default] i=2 always space Previously, perltidy always followed the input. For example, given the following input sub usage(); The result will be: sub usage(); # i=0 [no space] sub usage(); # i=1 [default; follows input] sub usage (); # i=2 [space] - Fixed issue git#16, minor vertical alignment issue. - Fixed issue git#10, minor conflict of -wn and -ce - Improved some vertical alignments involving two lines. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.22 2019/10/27 14:04:38 mef Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20191203.tar.gz) = 2dfa7a91edd9b5d955a235d95bfdaa2f4c1b6410 RMD160 (Perl-Tidy-20191203.tar.gz) = d723625524625ee878f585e803d1a20da5802699 SHA512 (Perl-Tidy-20191203.tar.gz) = 6543cdc74fadc3cfc7b23ed025783c323f3251ed57b87d770c758b3161d2b7671941e2526c55dafb402ef8498b656967374f13843f797207fb4d0551e6940824 Size (Perl-Tidy-20191203.tar.gz) = 607789 bytes @ 1.22 log @(devel/p5-Perl-Tidy) Updated from 20181120 to 20190915 ## 2019 09 15 - fixed issue RT#130344: false warning "operator in print statement" for "use lib". - fixed issue RT#130304: standard error output should include filename. When perltidy error messages are directed to the standard error output with -se or --standard-error-output, the message lines now have a prefix 'filename:' for clarification in case multiple files are processed, where 'filename' is the name of the input file. If input is from the standard input the displayed filename is '', and if it is from a data structure then displayed filename is ''. - implement issue RT#130425: check mode. A new flag '--assert-tidy' will cause an error message if the output script is not identical to the input script. For completeness, the opposite flag '--assert-untidy' has also been added. The next item, RT#130297, insures that the script will exit with a non-zero exit flag if the assertion fails. - fixed issue RT#130297; the perltidy script now exits with a nonzero exit status if it wrote to the standard error output. Prevously only fatal run errors produced a non-zero exit flag. Now, even non-fatal messages requested with the -w flag will cause a non-zero exit flag. The exit flag now has these values: 0 = no errors 1 = perltidy could not run to completion due to errors 2 = perltidy ran to completion with error messages - added warning message for RT#130008, which warns of conflicting input parameters -iob and -bom or -boc. - fixed RT#129850; concerning a space between a closing block brace and opening bracket or brace, as occurs before the '[' in this line: my @@addunix = map { File::Spec::Unix->catfile( @@ROOT, @@$_ ) } ['b']; Formerly, any space was removed. Now it is optional, and the output will follow the input. - fixed issue git#13, needless trailing whitespace in error message - fixed issue git#9: if the -ce (--cuddled-else) flag is used, do not try to form new one line blocks for a block type specified with -cbl, particularly map, sort, grep - iteration speedup for unchanged code. Previously, when iterations were requested, at least two formatting passes were made. Now just a single pass is made if the formatted code is identical to the input code. - some improved vertical alignments ## 2019 06 01 - rt #128477: Prevent inconsistent owner/group and setuid/setgid bits. In the -b (--backup-and-modify-in-place) mode, an attempt is made to set ownership of the output file equal to the input file, if they differ. In all cases, if the final output file ownership differs from input file, any setuid/setgid bits are cleared. - Added option -bom (--break-at-old-method-breakpoints) by merrillymeredith which preserves breakpoints of method chains. Modified to also handle a cuddled call style. - Merged patch to fix Windows EOL translation error with UTF-8 written by Ron Ivy. This update prevents automatic conversion to 'DOS' CRLF line endings. Also, Windows system testing at the appveyor site is working again. - RT #128280, added flag --one-line-block-semicolons=n (-olbs=n) to control semicolons in one-line blocks. The values of n are: n=0 means no semicolons termininating simple one-line blocks n=1 means stable; do not change from input file [DEFAULT and current] n=2 means always add semicolons in one-line blocks The current behavior corresponds to the default n=1. - RT #128216, Minor update to prevent inserting unwanted blank line at indentation level change. This should not change existing scripts. - RT #81852: Improved indentation when quoted word (qw) lists are nested within other containers using the --weld-nested (-wn) flag. The example given previously (below) is now closer to what it would be with a simple list instead of qw: # perltidy -wn use_all_ok( qw{ PPI PPI::Tokenizer PPI::Lexer PPI::Dumper PPI::Find PPI::Normal PPI::Util PPI::Cache } ); - RT#12764, introduced new feature allowing placement of blanks around sequences of selected keywords. This can be activated with the -kgb* series of parameters described in the manual. - Rewrote vertical algnment module. It is better at finding patterns in complex code. For example, OLD: /^-std$/ && do { $std = 1; next; }; /^--$/ && do { @@link_args = @@argv; last; }; /^-I(.*)/ && do { $path = $1 || shift @@argv; next; }; NEW: /^-std$/ && do { $std = 1; next; }; /^--$/ && do { @@link_args = @@argv; last; }; /^-I(.*)/ && do { $path = $1 || shift @@argv; next; }; - Add repository URLs to META files - RT #118553, "leave only one newline at end of file". This option was not added because of undesirable side effects, but a new filter script was added which can do this, "examples/delete_ending_blank_lines.pl". @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.21 2018/11/25 14:51:02 wen Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20190915.tar.gz) = a0c31ff78813e42f044a77cb7cdb16e9a14a5d6c RMD160 (Perl-Tidy-20190915.tar.gz) = cd1fd37f2ac02545a43bf0dd77741f09a39bd003 SHA512 (Perl-Tidy-20190915.tar.gz) = 553d84bcba8cbe10c0a1e77ef9e31dfdc5957c758efa2bd556ff47a0a354f16eec922842a36c4ccdaed691ffecb6a5dad63dfee2b038f4d2c5882a7e07bad51f Size (Perl-Tidy-20190915.tar.gz) = 599290 bytes @ 1.21 log @Update to 20181120 Upstream changes: ## 2018 11 20 - fix RT#127736 Perl-Tidy-20181119 has the EXE_FILES entry commented out in Makefile.PL so it doesn't install the perltidy script or its manpage. ## 2018 11 19 - Removed test case 'filter_example.t' which was causing a failure on a Windows installation for unknown reasons, possibly due to an unexpected perltidyrc being read by the test script. Added VERSION numbers to all new modules. ## 2018 11 17 - Fixed RT #126965, in which a ternary operator was misparsed if immediately following a function call without arguments, such as: my $restrict_customer = shift ? 1 : 0; - Fixed RT #125012: bug in -mangle --delete-all-comments A needed blank space before bareword tokens was being removed when comments were deleted - Fixed RT #81852: Stacked containers and quoting operators. Quoted words (qw) delimited by container tokens ('{', '[', '(', '<') are now included in the --weld-nested (-wn) flag: # perltidy -wn use_all_ok( qw{ PPI PPI::Tokenizer PPI::Lexer PPI::Dumper PPI::Find PPI::Normal PPI::Util PPI::Cache } ); - The cuddled-else (-ce) coding was merged with the new cuddled-block (-cb) coding. The change is backward compatible and simplifies input. The --cuddled-block-option=n (-cbo=n) flag now applies to both -ce and -cb formatting. In fact the -cb flag is just an alias for -ce now. - Fixed RT #124594, license text desc. changed from 'GPL-2.0+' to 'gpl_2' - Fixed bug in which a warning about a possible code bug was issued in a script with brace errors. - added option --notimestamp or -nts to eliminate any time stamps in output files. This is used to prevent differences in test scripts from causing failure at installation. For example, the -cscw option will put a date stamp on certain closing side comments. We need to avoid this in order to test this feature in an installation test. - Fixed bug with the entab option, -et=8, in which the leading space of some lines was was not entabbed. This happened in code which was adjusted for vertical alignment and in hanging side comments. Thanks to Glenn. - Fixed RT #127633, undesirable line break after return when -baao flag is set - Fixed RT #127035, vertical alignment. Vertical alignment has been improved in several ways. Thanks especially to Michael Wardman and Glenn for sending helpful snippets. - Alignment of the =~ operators has been reactivated. OLD: $service_profile =~ s/^\s+|\s+$//g; $host_profile =~ s/^\s+|\s+$//g; NEW: $service_profile =~ s/^\s+|\s+$//g; $host_profile =~ s/^\s+|\s+$//g; - Alignment of the // operator has been reactivated. OLD: is( pop // 7, 7, 'pop // ... works' ); is( pop() // 7, 0, 'pop() // ... works' ); is( pop @@ARGV // 7, 3, 'pop @@array // ... works' ); NEW: is( pop // 7, 7, 'pop // ... works' ); is( pop() // 7, 0, 'pop() // ... works' ); is( pop @@ARGV // 7, 3, 'pop @@array // ... works' ); - The rules for alignment of just two lines have been adjusted, hopefully to be a little better overall. In some cases, two lines which were previously unaligned are now aligned, and vice-versa. OLD: $expect = "1$expect" if $expect =~ /^e/i; $p = "1$p" if defined $p and $p =~ /^e/i; NEW: $expect = "1$expect" if $expect =~ /^e/i; $p = "1$p" if defined $p and $p =~ /^e/i; - RT #106493; source code repository location has been added to docs; it is https://github.com/perltidy/perltidy - The packaging for this version has changed. The Tidy.pm module is much smaller. Supporting modules have been split out from it and placed below it in the path Perl/Tidy/*. - A number of new installation test cases have been added. Updates are now continuously tested at Travis CI against versions back to Perl 5.08. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.20 2018/02/21 07:39:42 wen Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20181120.tar.gz) = 3a44283b478291b4e13d168268076c96bd64294b RMD160 (Perl-Tidy-20181120.tar.gz) = 25d3212ba318c5a15c09832112d7daf7ffe2a5ce SHA512 (Perl-Tidy-20181120.tar.gz) = 5b75178f9fd874fa173a562d765091c66a8fc56b1efc16ace9cf0f6215688d7a334b7d68255aad20aa9da87bf79f9cc72604a52c56398952157512f01e53b5ca Size (Perl-Tidy-20181120.tar.gz) = 566087 bytes @ 1.20 log @Update to 20180220 Upstream changes: 2018 02 20 - RT #124469, #124494, perltidy often making empty files. The previous had an index error causing it to fail, particularly in version 5.18 of Perl. Please avoid version 20180219. 2018 02 19 - RT #79947, cuddled-else generalization. A new flag -cb provides 'cuddled-else' type formatting for an arbitrary type of block chain. The default is try-catch-finally, but this can be modified with the parameter -cbl. - Fixed RT #124298: add space after ! operator without breaking !! secret operator - RT #123749: numerous minor improvements to the -wn flag were made. - Fixed a problem with convergence tests in which iterations were stopping prematurely. - Here doc targets for <<~ type here-docs may now have leading whitespace. - Fixed RT #124354. The '-indent-only' flag was not working correctly in the previous release. A bug in version 20180101 caused extra blank lines to be output. - Issue RT #124114. Some improvements were made in vertical alignment involving 'fat commas'. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.19 2018/01/03 07:51:23 wiz Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20180220.tar.gz) = 2c207a76b69cc3ecf73b6e4a9583e3c745585fd3 RMD160 (Perl-Tidy-20180220.tar.gz) = c17681a04a432dd8c0627ca8ac21da79f34ff310 SHA512 (Perl-Tidy-20180220.tar.gz) = 93bdf2c18efdd9d62d5bb666ded9d9502a722370049a2a51f9d41107d7fa67acd91dfdd184a11eaab287f11a901ad686585e959f09407b0493719d19ce5d842e Size (Perl-Tidy-20180220.tar.gz) = 464114 bytes @ 1.19 log @p5-Perl-Tidy: update to 20180101. 2018 01 01 - Added new flag -wn (--weld-nested-containers) which addresses these issues: RT #123749: Problem with promises; RT #119970: opening token stacking strange behavior; RT #81853: Can't stack block braces - Fixed RT #114359: Missparsing of "print $x ** 0.5; - Deactivated the --check-syntax flag for better security. It will be ignored if set. - Corrected minimum perl version from 5.004 to 5.008 based on perlver report. The change is required for coding involving wide characters. - For certain severe errors, the source file will be copied directly to the output without formatting. These include ending in a quote, ending in a here doc, and encountering an unidentified character. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.18 2017/12/30 12:47:21 wen Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20180101.tar.gz) = 4ea4331ea5dbe8c5cd0b354459d4626248c74e1b RMD160 (Perl-Tidy-20180101.tar.gz) = bcb9499b154f97befcfdf93426c2cbaeb0b07c19 SHA512 (Perl-Tidy-20180101.tar.gz) = 93473ba9292eb720e19cf257fc3d175568dceb55f3a571788248320f34745ee0a93c09feac3fe59cc0decbe7fd22203ceca6902cc78a2182da746e27f8ad41a8 Size (Perl-Tidy-20180101.tar.gz) = 442488 bytes @ 1.18 log @Update to 20171214 Upstream changes: Perltidy Change Log 2017 12 14 - RT #123749, partial fix. "Continuation indentation" is removed from lines with leading closing parens which are part of a call chain. For example, the call to pack() is is now outdented to the starting indentation in the following experession: # OLD $mw->Button( -text => "New Document", -command => \&new_document )->pack( -side => 'bottom', -anchor => 'e' ); # NEW $mw->Button( -text => "New Document", -command => \&new_document )->pack( -side => 'bottom', -anchor => 'e' ); This modification improves readability of complex expressions, especially when the user uses the same value for continuation indentation (-ci=n) and normal indentation (-i=n). Perltidy was already programmed to do this but a minor bug was preventing it. - RT #123774, added flag to control space between a backslash and a single or double quote, requested by Robert Rothenberg. The issue is that lines like $str1=\"string1"; $str2=\'string2'; confuse syntax highlighters unless a space is left between the backslash and the quote. The new flag to control this is -sbq=n (--space-backslash-quote=n), where n=0 means no space, n=1 means follow existing code, n=2 means always space. The default is n=1, meaning that a space will be retained if there is one in the source code. - Fixed RT #123492, support added for indented here doc operator <<~ added in v5.26. Thanks to Chris Weyl for the report. - Fixed docs; --closing-side-comment-list-string should have been just --closing-side-comment-list. Thanks to F.Li. - Added patch RT #122030] Perl::Tidy sometimes does not call binmode. Thanks to Irilis Aelae. - Fixed RT #121959, PERLTIDY doesn't honor the 'three dot' notation for locating a config file using environment variables. Thanks to John Wittkowski. - Minor improvements to formatting, in which some additional vertical aligmnemt is done. Thanks to Keith Neargarder. - RT #119588. Vertical alignment is no longer done for // operator. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.17 2017/09/17 12:52:57 wiz Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20171214.tar.gz) = b0ad80e96b859000c02116229813892834eb9335 RMD160 (Perl-Tidy-20171214.tar.gz) = b8acd4342f16d2c3f0682c5ff65a19f3c01f39c7 SHA512 (Perl-Tidy-20171214.tar.gz) = bc561146f184dd0023de44741cafdcf6882ef553ed2e0c0ec8cd9a234f45b76638b4dc7edde0abfc36e4cc1f84ef908c35dc63f776de65e2abd938d35563cc65 Size (Perl-Tidy-20171214.tar.gz) = 435256 bytes @ 1.17 log @p5-Perl-Tidy: update to 20170521. 2017 05 21 - Fixed debian #862667: failure to check for perltidy.ERR deletion can lead to overwriting abritrary files by symlink attack. Perltidy was continuing to write files after an unlink failure. Thanks to Don Armstrong for a patch. - Fixed RT #116344, perltidy fails on certain anonymous hash references: in the following code snippet the '?' was misparsed as a pattern delimiter rather than a ternary operator. return ref {} ? 1 : 0; - Fixed RT #113792: misparsing of a fat comma (=>) right after the __END__ or __DATA__ tokens. These keywords were getting incorrectly quoted by the following => operator. - Fixed RT #118558. Custom Getopt::Long configuration breaks parsing of perltidyrc. Perltidy was resetting the users configuration too soon. - Fixed RT #119140, failure to parse double diamond operator. Code to handle this new operator has been added. - Fixed RT #120968. Fixed problem where -enc=utf8 didn't work with --backup-and-modify-in-place. Thanks to Heinz Knutzen for this patch. - Fixed minor formatting issue where one-line blocks for subs with signatures were unnecesarily broken - RT #32905, patch to fix utf-8 error when output was STDOUT. - RT #79947, improved spacing of try/catch/finally blocks. Thanks to qsimpleq for a patch. - Fixed #114909, Anonymous subs with signatures and prototypes misparsed as broken ternaries, in which a statement such as this was not being parsed correctly: return sub ( $fh, $out ) : prototype(*$) { ... } - Implemented RT #113689, option to introduces spaces after an opening block brace and before a closing block brace. Four new optional controls are added. The first two define the minimum number of blank lines to be inserted -blao=i or --blank-lines-after-opening-block=i -blbc=i or --blank-lines-before-closing-block=i where i is an integer, the number of lines (the default is 0). The second two define the types of blocks to which the first two apply -blaol=s or --blank-lines-after-opening-block-list=s -blbcl=s or --blank-lines-before-closing-block-list=s where s is a string of possible block keywords (default is just 'sub', meaning a named subroutine). For more information please see the documentation. - The method for specifying block types for certain input parameters has been generalized to distinguish between normal named subroutines and anonymous subs. The keyword for normal subroutines remains 'sub', and the new keyword for anonymous subs is 'asub'. - Minor documentation changes. The BUGS sections now have a link to CPAN where most open bugs and issues can be reviewed and bug reports can be submitted. The information in the AUTHOR and CREDITS sections of the man pages have been removed from the man pages to streamline the documentation. This information is still in the source code. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.16 2016/03/04 13:06:58 wen Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20170521.tar.gz) = 4a564dd7505f10afcc211427b4bfe1889551f25d RMD160 (Perl-Tidy-20170521.tar.gz) = 1ce13d8684812bc2ef305ff2f089a8ab3ea5fd9e SHA512 (Perl-Tidy-20170521.tar.gz) = 5382162346e2eb1276d4790ed03208e52bfb82ecc2bc63facd5dd81e247872ff209a5aba7718997d426bd1aad5a3fc7434117b60f53dc2eaf9993df6ed9cb1e8 Size (Perl-Tidy-20170521.tar.gz) = 432394 bytes @ 1.16 log @Update to 20160302 Upstream changes: 2016 03 02 - RT #112534. Corrected a minor problem in which an unwanted newline was placed before the closing brace of an anonymous sub with a signature, if it was in a list. Thanks to Dmytro Zagashev. - Corrected a minor problem in which occasional extra indentation was given to the closing brace of an anonymous sub in a list when the -lp parameter was set. 2016 03 01 - RT #104427. Added support for signatures. - RT #111512. Changed global warning flag $^W = 1 to use warnings; Thanks to Dmytro Zagashev. - RT #110297, added support for new regexp modifier /n Thanks to Dmytro Zagashev. - RT #111519. The -io (--indent-only) and -dac (--delete-all-comments) can now both be used in one pass. Thanks to Dmitry Veltishev. - Patch to avoid error message with 'catch' used by TryCatch, as in catch($err){ # do something } Thanks to Nick Tonkin. - RT #32905, UTF-8 coding is now more robust. Thanks to qsimpleq and Dmytro for patches. - RT #106885. Added string bitwise operators ^. &. |. ~. ^.= &.= |.= - Fixed RT #107832 and #106492, lack of vertical alignment of two lines when -boc flag (break at old commas) is set. This bug was inadvertantly introduced in previous bug fix RT #98902. - Some common extensions to Perl syntax are handled better. In particular, the following snippet is now foratted cleanly: method deposit( Num $amount) { $self->balance( $self->balance + $amount ); } A new flag -xs (--extended-syntax) was added to enable this, and the default is to use -xs. In previous versions, and now only when -nxs is set, this snippet of code generates the following error message: "syntax error at ') {', didn't see one of: case elsif for foreach given if switch unless until when while" @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.15 2015/11/03 03:28:40 agc Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20160302.tar.gz) = ac4f757013cbac99f03691ed119ac4c712ce904f RMD160 (Perl-Tidy-20160302.tar.gz) = 59f0b1337a77090196f7d17f49032b44d803156d SHA512 (Perl-Tidy-20160302.tar.gz) = 68c7cef5723df717b5b314bee2bd76f29f49194479da993764cd127ced750d5cd8193b0c6c71c19c627687385d20d3e51ea01fcd81ec69374c7edb253bcac4f1 Size (Perl-Tidy-20160302.tar.gz) = 428484 bytes @ 1.15 log @Add SHA512 digests for distfiles for devel category Issues found with existing distfiles: distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip distfiles/fortran-utils-1.1.tar.gz distfiles/ivykis-0.39.tar.gz distfiles/enum-1.11.tar.gz distfiles/pvs-3.2-libraries.tgz distfiles/pvs-3.2-linux.tgz distfiles/pvs-3.2-solaris.tgz distfiles/pvs-3.2-system.tgz No changes made to these distinfo files. Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.14 2015/08/15 23:04:54 mef Exp $ d3 4 a6 4 SHA1 (Perl-Tidy-20150815.tar.gz) = ebb236e84b388a2e9dcca0463349d1c22cc93745 RMD160 (Perl-Tidy-20150815.tar.gz) = 931f98006e5cce0db893249eea35f00f68e83b04 SHA512 (Perl-Tidy-20150815.tar.gz) = 49442291df1904dbe43afad1ff59e9ddbf3d2c1ee4656a34385f26d3bd00ba06725f1b06180454a7ea17315098ee450d05024edcc28e2c4fa69be34b97ed2e67 Size (Perl-Tidy-20150815.tar.gz) = 425224 bytes @ 1.14 log @Update 20140711 to 20150815 --------------------------- Perltidy Change Log 2015 08 15 - Fixed RT# 105484, Invalid warning about 'else' in 'switch' statement. The warning happened if a 'case' statement did not use parens. - Fixed RT# 101547, misparse of // caused error message. Also.. - Fixed RT# 102371, misparse of // caused unwated space in //= - Fixed RT# 100871, "silent failure of HTML Output on Windows". Changed calls to tempfile() from: my ( $fh_tmp, $tmpfile ) = tempfile(); to have the full path name: my ( $fh_tmp, $tmpfile ) = File::Temp::tempfile() because of problems in the Windows version reported by Dean Pearce. - Fixed RT# 99514, calling the perltidy module multiple times with a .perltidyrc file containing the parameter --output-line-ending caused a crash. This was a glitch in the memoization logic. - Fixed RT#99961, multiple lines inside a cast block caused unwanted continuation indentation. - RT# 32905, broken handling of UTF-8 strings. A new flag -utf8 causes perltidy assume UTF-8 encoding for input and output of an io stream. Thanks to Sebastian Podjasek for a patch. This feature may not work correctly in older versions of Perl. It worked in a linux version 5.10.1 but not in a Windows version 5.8.3 (but otherwise perltidy ran correctly). - Warning files now report perltidy VERSION. Suggested by John Karr. - Fixed long flag --nostack-closing-tokens (-nsct has always worked though). This was due to a typo. This also fixed --nostack-opening-tokens to behave correctly. Thanks to Rob Dixon. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.13 2014/07/17 12:47:17 wen Exp $ d5 1 @ 1.13 log @Update to 20140711 Upstream changes: 2014 07 11 - Fixed RT #94902: abbreviation parsing in .perltidyrc files was not working for multi-line abbreviations. Thanks to Eric Fung for supplying a patch. - Fixed RT #95708, misparsing of a hash when the first key was a perl keyword, causing a semicolon to be incorrectly added. - Fixed RT #94338 for-loop in a parenthesized block-map. A code block within parentheses of a map, sort, or grep function was being mistokenized. In rare cases this could produce in an incorrect error message. The fix will produce some minor formatting changes. Thanks to Daniel Trizen discovering and documenting this. - Fixed RT #94354, excess indentation for stacked tokens. Thanks to Colin Williams for supplying a patch. - Added support for experimental postfix dereferencing notation introduced in perl 5.20. RT #96021. - Updated documentation to clarify the behavior of the -io flag in response to RT #95709. You can add -noll or -l=0 to prevent long comments from being outdented when -io is used. - Added a check to prevent a problem reported in RT #81866, where large scripts which had been compressed to a single line could not be formatted because of a check for VERSION for MakeMaker. The workaround was to use -nvpl, but this shouldn't be necessary now. - Fixed RT #96101; Closing brace of anonymous sub in a list was being indented. For example, the closing brace of the anonymous sub below will now be lined up with the word 'callback'. This problem occured if there was no comma after the closing brace of the anonymous sub. This update may cause minor changes to formatting of code with lists of anonymous subs, especially TK code. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.12 2014/05/09 07:30:09 wen Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20140711.tar.gz) = 40ab9efd98c732c6f4f43a60f74ca0af8f15ed6f RMD160 (Perl-Tidy-20140711.tar.gz) = fdcf2981a45a4e701428ebd1a316f1b227cf4790 Size (Perl-Tidy-20140711.tar.gz) = 422397 bytes @ 1.12 log @Update to 20140328 Upstream changes: 2014 03 28 - Fixed RT #94190 and debian Bug #742004: perltidy.LOG file left behind. Thanks to George Hartzell for debugging this. The problem was caused by the memoization speedup patch in version 20121207. An unwanted flag was being set which caused a LOG to be written if perltidy was called multiple times. - New default behavior for LOG files: If the source is from an array or string (through a call to the perltidy module) then a LOG output is only possible if a logfile stream is specified. This is to prevent unexpected perltidy.LOG files. - Fixed debian Bug #740670, insecure temporary file usage. File::Temp is now used to get a temporary file. Thanks to Don Anderson for a patch. - Any -b (--backup-and-modify-in-place) flag is silently ignored when a source stream, destination stream, or standard output is used. This is because the -b flag may have been in a .perltidyrc file and warnings break Test::NoWarnings. Thanks to Marijn Brand. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.11 2013/10/15 14:54:17 wen Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20140328.tar.gz) = 5a85d893615a89afd0313200295f2d55ec9ef9fa RMD160 (Perl-Tidy-20140328.tar.gz) = a43242c08856441d67d0698e49266e0f8759f1bf Size (Perl-Tidy-20140328.tar.gz) = 420008 bytes @ 1.11 log @Update to 20130922 (Upstream changelog is too long, please visit: http://cpansearch.perl.org/src/SHANCOCK/Perl-Tidy-20130922/CHANGES) Update MASTER_SITES to CPAN @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.10 2012/09/13 16:03:16 sno Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20130922.tar.gz) = 9582498f5c2c9bd12bd4baf05211a1e978c20c06 RMD160 (Perl-Tidy-20130922.tar.gz) = c8b5fed97e1820488a18c31cdc5bbeb02f82d05b Size (Perl-Tidy-20130922.tar.gz) = 422005 bytes @ 1.10 log @Updating package for Perl5 code beautifier Perl::Tidy in devel/p5-Perl-Tidy from 20120701 to 20120714. Upstream changes: 2012 07 14 - Added flag -iscl (--ignore-side-comment-lengths) which causes perltidy to ignore the length of side comments when setting line breaks, RT #71848. The default is to include the length of side comments when breaking lines to stay within the length prescribed by the -l=n maximum line length parameter. For example, Default behavior on a single line with long side comment: $vmsfile =~ s/;[\d\-]*$// ; # Clip off version number; we can use a newer version as well perltidy -iscl leaves the line intact: $vmsfile =~ s/;[\d\-]*$//; # Clip off version number; we can use a newer version as well - Fixed RT #78182, side effects with STDERR. Error handling has been revised and the documentation has been updated. STDERR can now be redirected to a string reference, and perltidy now returns an error flag instead of calling die when input errors are detected. If the error flag is set then no tidied output was produced. See man Perl::Tidy for an example. - Fixed RT #78156, erroneous warning message for package VERSION syntax. - Added abbreviations -conv (--converge) to simplify iteration control. -conv is equivalent to -it=4 and will insure that the tidied code is converged to its final state with the minimum number of iterations. - Minor formatting modifications have been made to insure convergence. - Simplified and hopefully improved the method for guessing the starting indentation level of entabbed code. Added flag -dt=n (--default_tabsize=n) which might be helpful if the guessing method does not work well for some editors. - Added support for stacked labels, upper case X/B in hex and binary, and CORE:: namespace. - Eliminated warning messages for using keyword names as constants. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.9 2012/07/06 09:28:32 sno Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20120714.tar.gz) = faae891c111597a62aa07d874820ee693d25aac0 RMD160 (Perl-Tidy-20120714.tar.gz) = 88ed60185000613aa2ffe0ab003e7ef1a3c48f95 Size (Perl-Tidy-20120714.tar.gz) = 404151 bytes @ 1.9 log @Updating package for Perl 5 module Perl::Tidy (including neat util perltidy) in devel/p5-Perl-Tidy from 20101217 to 20120701. Upstream changes: 2012 07 01 - Corrected problem introduced by using a chomp on scalar references, RT #77978 - Added support for Perl 5.14 package block syntax, RT #78114. - A convergence test is made if three or more iterations are requested with the -it=n parameter to avoid wasting computer time. Several hundred Mb of code gleaned from the internet were searched with the results that: - It is unusual for two iterations to be required unless a major style change is being made. - Only one case has been found where three iterations were required. - No cases requiring four iterations have been found with this version. For the previous version several cases where found the results could oscillate between two semi-stable states. This version corrects this. So if it is important that the code be converged it is okay to set -it=4 with this version and it will probably stop after the second iteration. - Improved ability to identify and retain good line break points in the input stream, such as at commas and equals. You can always tell perltidy to ignore old breakpoints with -iob. - Fixed glitch in which a terminal closing hash brace followed by semicolon was not outdented back to the leading line depth like other closing tokens. Thanks to Keith Neargarder for noting this. OLD: my ( $pre, $post ) = @@{ { "pp_anonlist" => [ "[", "]" ], "pp_anonhash" => [ "{", "}" ] }->{ $kid->ppaddr } }; # terminal brace NEW: my ( $pre, $post ) = @@{ { "pp_anonlist" => [ "[", "]" ], "pp_anonhash" => [ "{", "}" ] }->{ $kid->ppaddr } }; # terminal brace - Removed extra indentation given to trailing 'if' and 'unless' clauses without parentheses because this occasionally produced undesirable results. This only applies where parens are not used after the if or unless. OLD: return undef unless my ( $who, $actions ) = $clause =~ /^($who_re)((?:$action_re)+)$/o; NEW: return undef unless my ( $who, $actions ) = $clause =~ /^($who_re)((?:$action_re)+)$/o; @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2011/08/16 23:04:17 wiz Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20120701.tar.gz) = d19acc3912a3b210daff7719bc76f1204ddacead RMD160 (Perl-Tidy-20120701.tar.gz) = b410bfb0cb7138b4f497a316502e64bce17906bf Size (Perl-Tidy-20120701.tar.gz) = 400133 bytes @ 1.8 log @Update to 20101217: 2010 12 17 - added new flag -it=n or --iterations=n This flag causes perltidy to do n complete iterations. For most purposes the default of n=1 should be satisfactory. However n=2 can be useful when a major style change is being made, or when code is being beautified on check-in to a source code control system. The run time will be approximately proportional to n, and it should seldom be necessary to use a value greater than n=2. Thanks to Jonathan Swartz - A configuration file pathname begins with three dots, e.g. ".../.perltidyrc", indicates that the file should be searched for starting in the current directory and working upwards. This makes it easier to have multiple projects each with their own .perltidyrc in their root directories. Thanks to Jonathan Swartz for this patch. - Added flag --notidy which disables all formatting and causes the input to be copied unchanged. This can be useful in conjunction with hierarchical F<.perltidyrc> files to prevent unwanted tidying. Thanks to Jonathan Swartz for this patch. - Added prefilters and postfilters in the call to the Tidy.pm module. Prefilters and postfilters. The prefilter is a code reference that will be applied to the source before tidying, and the postfilter is a code reference to the result before outputting. Thanks to Jonathan Swartz for this patch. He writes: This is useful for all manner of customizations. For example, I use it to convert the 'method' keyword to 'sub' so that perltidy will work for Method::Signature::Simple code: Perl::Tidy::perltidy( prefilter => sub { $_ = $_[0]; s/^method (.*)/sub $1 \#__METHOD/gm; return $_ }, postfilter => sub { $_ = $_[0]; s/^sub (.*?)\s* \#__METHOD/method $1/gm; return $_ } ); - The starting indentation level of sections of code entabbed with -et=n is correctly guessed if it was also produced with the same -et=n flag. This keeps the indentation stable on repeated formatting passes within an editor. Thanks to Sam Kington and Glenn. - Functions with prototype '&' had a space between the function and opening peren. This space now only occurs if the flag --space-function-paren (-sfp) is set. Thanks to Zrajm Akfohg. - Patch to never put spaces around a bare word in braces beginning with ^ as in: my $before = ${^PREMATCH}; even if requested with the -bt=0 flag because any spaces cause a syntax error in perl. Thanks to Fabrice Dulanoy. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2009/07/07 20:05:26 sno Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20101217.tar.gz) = d9efd9bd29403fcda7d6f1667b0b0bdd62d8d744 RMD160 (Perl-Tidy-20101217.tar.gz) = bd28763749424456598135e877890c97fdf594cc Size (Perl-Tidy-20101217.tar.gz) = 387834 bytes @ 1.7 log @pkgsrc changes: - Updating Perl-Tidy from 20071205 to 20090616 - Setting license to gnu-gpl-v2 Upstream changes: 2009 06 16 - Allow configuration file to be 'perltidy.ini' for Windows systems. i.e. C:\Documents and Settings\User\perltidy.ini and added documentation for setting configuation file under Windows in man page. Thanks to Stuart Clark. - Corrected problem of unwanted semicolons in hash ref within given/when code. Thanks to Nelo Onyiah. - added new flag -cscb or --closing-side-comments-balanced When using closing-side-comments, and the closing-side-comment-maximum-text limit is exceeded, then the comment text must be truncated. Previous versions of perltidy terminate with three dots, and this can still be achieved with -ncscb: perltidy -csc -ncscb } ## end foreach my $foo (sort { $b cmp $a ... However this causes a problem with older editors which cannot recognize comments or are not configured to doso because they cannot "bounce" around in the text correctly. The B<-cscb> flag tries to help them by appending appropriate terminal balancing structure: perltidy -csc -cscb } ## end foreach my $foo (sort { $b cmp $a ... }) Since there is much to be gained and little to be lost by doing this, the default is B<-cscb>. Use B<-ncscb> if you do not want this. Thanks to Daniel Becker for suggesting this option. - After an isolated closing eval block the continuation indentation will be removed so that the braces line up more like other blocks. Thanks to Yves Orton. OLD: eval { #STUFF; 1; # return true } or do { #handle error }; NEW: eval { #STUFF; 1; # return true } or do { #handle error }; -A new flag -asbl (or --opening-anonymous-sub-brace-on-new-line) has been added to put the opening brace of anonymous sub's on a new line, as in the following snippet: my $code = sub { my $arg = shift; return $arg->(@@_); }; This was not possible before because the -sbl flag only applies to named subs. Thanks to Benjamin Krupp. -Fix tokenization bug with the following snippet print 'hi' if { x => 1, }->{x}; which resulted in a semicolon being added after the comma. The workaround was to use -nasc, but this is no longer necessary. Thanks to Brian Duggan. -Fixed problem in which an incorrect error message could be triggered by the (unusual) combination of parameters -lp -i=0 -l=2 -ci=0 for example. Thanks to Richard Jelinek. -A new flag --keep-old-blank-lines=n has been added to give more control over the treatment of old blank lines in a script. The manual has been revised to discuss the new flag and clarify the treatment of old blank lines. Thanks to Oliver Schaefer. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2008/12/18 23:22:21 he Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20090616.tar.gz) = e14d4ec61e546a3208f3e790edacc500431c6253 RMD160 (Perl-Tidy-20090616.tar.gz) = 66ac8463c079cc030063271961260933b5fdb549 Size (Perl-Tidy-20090616.tar.gz) = 383497 bytes @ 1.6 log @Update from version 20070508nb1 to 20071205. Fixes PR#39557. Pkgsrc changes: o Add a commented-out HOMEPAGE using search.cpan.org Upstream changes: 2007 12 05 -Improved support for perl 5.10: New quote modifier 'p', new block type UNITCHECK, new keyword break, improved formatting kof given/when. -Corrected tokenization bug of something like $var{-q}. -Numerous minor formatting improvements. -Corrected list of operators controlled by -baao -bbao to include . : ? && || and or err xor -Corrected very minor error in log file involving incorrect comment regarding need for upper case of labels. -Fixed problem where perltidy could run for a very long time when given certain non-perl text files. -Line breaks in un-parenthesized lists now try to follow line breaks in the input file rather than trying to fill lines. This usually works better, but if this causes trouble you can use -iob to ignore any old line breaks. Example for the following input snippet: print "conformability (Not the same dimension)\n", "\t", $have, " is ", text_unit($hu), "\n", "\t", $want, " is ", text_unit($wu), "\n", ; OLD: print "conformability (Not the same dimension)\n", "\t", $have, " is ", text_unit($hu), "\n", "\t", $want, " is ", text_unit($wu), "\n",; NEW: print "conformability (Not the same dimension)\n", "\t", $have, " is ", text_unit($hu), "\n", "\t", $want, " is ", text_unit($wu), "\n", ; 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 file. 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'; @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2007/06/10 08:42:10 obache Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20071205.tar.gz) = 833c30e436e1a1d091ccc518696843a28a284ae7 RMD160 (Perl-Tidy-20071205.tar.gz) = cb82efeae11d71b9651b5d315617ea3c48958843 Size (Perl-Tidy-20071205.tar.gz) = 376719 bytes @ 1.5 log @Update p5-Perl-Tidy to 20070508. Patch provided by Mark E. Perkins in PR 36465. Perltidy Change Log 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. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 SHA1 (Perl-Tidy-20070508.tar.gz) = 9bbea2181e8dcf69744eca20bf5b7254de5c55e6 RMD160 (Perl-Tidy-20070508.tar.gz) = 138b36b097cf6a4c669f1e9d92a9659a0e651f5e Size (Perl-Tidy-20070508.tar.gz) = 363515 bytes @ 1.4 log @perltidy was already imported as p5-Perl-Tidy. Update that to 20070424 and remove misimported perltidy. Thanks to the eagle eye of Stoned for picking this up. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2005/02/23 22:24:28 agc Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20070424.tar.gz) = 6bffbfd3308cdb1ae1232c7bd643df1d6024103c RMD160 (Perl-Tidy-20070424.tar.gz) = 224498e3a301e4df375811c353e46bfdcc156881 Size (Perl-Tidy-20070424.tar.gz) = 363200 bytes @ 1.3 log @Add RMD160 digests. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2005/02/04 14:35:19 wiz Exp $ d3 3 a5 3 SHA1 (Perl-Tidy-20031021.tar.gz) = c76530bb52fa43dff2827466644b4adc134c9ecf RMD160 (Perl-Tidy-20031021.tar.gz) = 1c7a6b231d965933612d2d5b01b1db64e24db366 Size (Perl-Tidy-20031021.tar.gz) = 327155 bytes @ 1.2 log @Update to 20031021: 2003 10 21 -The default has been changed to not do syntax checking with perl. Use -syn if you want it. Perltidy is very robust now, and the -syn flag now causes more problems than it's worth because of BEGIN blocks (which get executed with perl -c). For example, perltidy will never return when trying to beautify this code if -syn is used: BEGIN { 1 while { }; } Although this is an obvious error, perltidy is often run on untested code which is more likely to have this sort of problem. A more subtle example is: BEGIN { use FindBin; } which may hang on some systems using -syn if a shared file system is unavailable. -Changed style -gnu to use -cti=1 instead of -cti=2 (see next item). In most cases it looks better. To recover the previous format, use '-gnu -cti=2' -Added flags B<-cti=n> for finer control of closing token indentation. -cti = 0 no extra indentation (default; same as -nicp) -cti = 1 enough indentation so that the closing token aligns with its opening token. -cti = 2 one extra indentation level if the line has the form C<);>, C<];>, or <};> (same as -icp). The new option -cti=1 works well with -lp: EXAMPLES: # perltidy -lp -cti=1 @@month_of_year = ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ); # perltidy -lp -cti=2 @@month_of_year = ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ); This is backwards compatible with -icp. See revised manual for details. Suggested by Mike Pennington. -Added flag '--preserve-line-endings' or '-ple' to cause the output line ending to be the same as in the input file, for unix, dos, or mac line endings. Only works under unix. Suggested by Rainer Hochschild. -Added flag '--output-line-ending=s' or '-ole=s' where s=dos or win, unix, or mac. Only works under unix. -Files with Mac line endings should now be handled properly under unix and dos without being passed through a converter. -You may now include 'and', 'or', and 'xor' in the list following '--want-break-after' to get line breaks after those keywords rather than before them. Suggested by Rainer Hochschild. -Corrected problem with command line option for -vtc=n and -vt=n. The equals sign was being eaten up by the Windows shell so perltidy didn't see it. 2003 07 26 -Corrected cause of warning message with recent versions of Perl: "Possible precedence problem on bitwise & operator at ..." Thanks to Jim Files. -fixed bug with -html with '=for pod2html' sections, in which code/pod output order was incorrect. Thanks to Tassilo von Parseval. -fixed bug when the -html flag is used, in which the following error message, plus others, appear: did not see in pod2html output This was caused by a change in the format of html output by pod2html VERSION 1.04 (included with perl 5.8). Thanks to Tassilo von Parseval. -Fixed bug where an __END__ statement would be mistaken for a label if it is immediately followed by a line with a leading colon. Thanks to John Bayes. -Implemented guessing logic for brace types when it is ambiguous. This has been on the TODO list a long time. Thanks to Boris Zentner for an example. -Long options may now be negated either as '--nolong-option' or '--no-long-option'. Thanks to Philip Newton for the suggestion. -added flag --html-entities or -hent which controls the use of Html::Entities for html formatting. Use --nohtml-entities or -nhent to prevent the use of Html::Entities to encode special symbols. The default is -hent. Html::Entities when formatting perl text to escape special symbols. This may or may not be the right thing to do, depending on browser/language combinations. Thanks to Gurak Bursoy for this suggestion. -Bareword strings with leading '-', like, '-foo' now count as 1 token for horizontal tightness. This way $a{'-foo'}, $a{foo}, and $a{-foo} are now all treated similarly. Thus, by default, OLD: $a{ -foo } will now be NEW: $a{-foo}. Suggested by Mark Olesen. -added 2 new flags to control spaces between keywords and opening parens: -sak=s or --space-after-keyword=s, and -nsak=s or --nospace-after-keyword=s, where 's' is a list of keywords. The new default list of keywords which get a space is: "my local our and or eq ne if else elsif until unless while for foreach return switch case given when" Use -sak=s and -nsak=s to add and remove keywords from this list, respectively. Explanation: Stephen Hildrey noted that perltidy was being inconsistent in placing spaces between keywords and opening parens, and sent a patch to give user control over this. The above list was selected as being a reasonable default keyword list. Previously, perltidy had a hardwired list which also included these keywords: push pop shift unshift join split die but did not have 'our'. Example: if you prefer to make perltidy behave exactly as before, you can include the following two lines in your .perltidyrc file: -sak="push pop local shift unshift join split die" -nsak="our" -Corrected html error in .toc file when -frm -html is used (extra "); browsers were tolerant of it. -Improved alignment of chains of binary and ?/: operators. Example: OLD: $leapyear = $year % 4 ? 0 : $year % 100 ? 1 : $year % 400 ? 0 : 1; NEW: $leapyear = $year % 4 ? 0 : $year % 100 ? 1 : $year % 400 ? 0 : 1; -improved breakpoint choices involving '->' -Corrected tokenization of things like ${#} or ${©}. For example, ${©} is valid, but ${© } is a syntax error. -Corrected minor tokenization errors with indirect object notation. For example, 'new A::()' works now. -Minor tokenization improvements; all perl code distributed with perl 5.8 seems to be parsed correctly except for one instance (lextest.t) of the known bug. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1.1.1 2004/02/22 01:58:09 minskim Exp $ d4 1 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 SHA1 (Perl-Tidy-20021130.tar.gz) = 2909f7797a147b0b144ae3683c76baaac082f45c Size (Perl-Tidy-20021130.tar.gz) = 305237 bytes @ 1.1.1.1 log @Import p5-Perl-Tidy from pkgsrc-wip. Packaged by Adam Migus and slightly modified by me. Perl-Tidy is a tool to indent and reformat Perl scripts. It can also write scripts in HTML format. @ text @@