Skip Menu |

This queue is for tickets about the Perl-Tidy CPAN distribution.

Report information
The Basics
Id: 87330
Status: resolved
Priority: 0/
Queue: Perl-Tidy

People
Owner: Nobody in particular
Requestors: TODDR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Remove whitespace at EOL
It would be nice if there was an option to remove white space at the end of lines, assuming you're not inside of quotes. I can't think of a reason, even inside POD where it would be necessary to leave the white space in.
Version 20130806 add a flag -trp (--trim-pod) to trim whitespace at end of lines of POD. It is off by default.
On Mon Aug 05 21:01:50 2013, SHANCOCK wrote: Show quoted text
> Version 20130806 add a flag -trp (--trim-pod) to trim whitespace at > end of lines of POD. It is off by default.
Hi, I was speaking much more generically about being able to remove white space at the end of ALL lines. The only reason I could think of not doing this is if the end of line is inside of quotes.
Subject: Re: [rt.cpan.org #87330] Remove whitespace at EOL
Date: Tue, 6 Aug 2013 13:39:16 -0700
To: bug-Perl-Tidy [...] rt.cpan.org
From: Steven Hancock <perltidy [...] users.sourceforge.net>
Perltidy already does this as far as I know, except for POD lines. Steve On Tue, Aug 6, 2013 at 12:07 PM, Todd Rinaldo via RT < bug-Perl-Tidy@rt.cpan.org> wrote: Show quoted text
> Queue: Perl-Tidy > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=87330 > > > On Mon Aug 05 21:01:50 2013, SHANCOCK wrote:
> > Version 20130806 add a flag -trp (--trim-pod) to trim whitespace at > > end of lines of POD. It is off by default.
> > Hi, I was speaking much more generically about being able to remove white > space at the end of ALL lines. The only reason I could think of not doing > this is if the end of line is inside of quotes. >
On Tue Aug 06 16:39:36 2013, SHANCOCK wrote: Show quoted text
> Perltidy already does this as far as I know, except for POD lines. > Steve >
Not as best I can tell. My version: $>pt --version This is perltidy, v20120714 My RC file: $>cat ~/.perltidyrc -l=400 -i=4 -dt=4 -it=4 -bar -nsfs -nolq --break-at-old-comma-breakpoints --format-skipping --format-skipping-begin='#\s*tidyoff' --format-skipping-end='#\s*tidyon' My command: /usr/local/cpanel/3rdparty/perl/514/bin/perltidy -b -bext="/" foo.pl Put some white space after some semicolons in foo.pl and they are not cleared after running the above.
On Mon Aug 26 15:44:38 2013, TODDR wrote: Show quoted text
> On Tue Aug 06 16:39:36 2013, SHANCOCK wrote:
> > Perltidy already does this as far as I know, except for POD lines. > > Steve > >
> > Not as best I can tell. > > My version: > $>pt --version > This is perltidy, v20120714 > > My RC file: > > $>cat ~/.perltidyrc > -l=400 > -i=4 > -dt=4 > -it=4 > -bar > -nsfs > -nolq > --break-at-old-comma-breakpoints > --format-skipping > --format-skipping-begin='#\s*tidyoff' > --format-skipping-end='#\s*tidyon' > > My command: > > /usr/local/cpanel/3rdparty/perl/514/bin/perltidy -b -bext="/" foo.pl > > Put some white space after some semicolons in foo.pl and they are not > cleared after running the above.
I couldn't reproduce this problem. Steve