Subject: | Bug with whitespace following "format-skipping comments" |
Date: | Fri, 10 Feb 2012 17:07:48 +0000 |
To: | "bug-Perl-Tidy [...] rt.cpan.org" <bug-Perl-Tidy [...] rt.cpan.org> |
From: | "Morse, Richard E.MGH" <REMORSE [...] PARTNERS.ORG> |
Hi! If I have a section of code that I wish not to be formatted, I can surround it in "#<<<" and "#>>>", like so:
my $foo = '1';
#<<<
my $bar = (test())
? 'some value'
: undef;
#>>>
my $baz = 'something else';
Perl::Tidy correctly does not format the code inside the comments, but it does remove the blank line between the '#>>>' and the following code, as thus:
my $foo = '1';
#<<<
my $bar = (test())
? 'some value'
: undef;
#>>>
my $baz = 'something else';
This makes the following code look like part of the same logical stanza and the code to be left untouched.
Is there some way to keep it from doing this?
Thanks,
Ricky
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.