Two commands which remove comments (but not pod) are: B<-dbc> or
B<--delete-block-comments> and B<-dsc> or B<--delete-side-comments>.
-(Hanging side comments will be deleted with block comments here.)
+(Hanging side comments will be deleted with side comments here.)
The negatives of these commands also work, and are the defaults. When
block comments are deleted, any leading 'hash-bang' will be retained.
The commands which write comments (but not pod) are: B<-tbc> or
B<--tee-block-comments> and B<-tsc> or B<--tee-side-comments>.
-(Hanging side comments will be written with block comments here.)
+(Hanging side comments will be written with side comments here.)
The negatives of these commands also work, and are the defaults.
{
$self->want_blank_line();
}
+ if ( $rOpts->{'tee-pod'} ) {
+ $sink_object->write_tee_line($input_line);
+ }
}
# leave the blank counters in a predictable state
if ( !$skip_line ) {
$self->write_unindented_line($input_line);
}
-
- if ( $rOpts->{'tee-pod'} ) {
- $sink_object->write_tee_line($input_line);
- }
}
}
return;
my $rLL = $self->{rLL};
my $rbreak_container = $self->{rbreak_container};
my $rshort_nested = $self->{rshort_nested};
+ my $sink_object = $self->{sink_object};
my $rOpts_add_newlines = $rOpts->{'add-newlines'};
my $rOpts_break_at_old_comma_breakpoints =
if ($is_comment) {
if ( $rOpts->{'tee-block-comments'} ) {
- $file_writer_object->tee_on();
+ $sink_object->write_tee_line($input_line);
}
destroy_one_line_block();
$rtok_first->[_TOKEN_] . "\n" );
$last_line_leading_type = '#';
}
- if ( $rOpts->{'tee-block-comments'} ) {
- $file_writer_object->tee_off();
- }
return;
}
my $type = $rLL->[$K_last]->[_TYPE_];
+ if ( $type eq '#' && $rOpts->{'tee-side-comments'} ) {
+ $sink_object->write_tee_line($input_line);
+ }
+
# we have to flush ..
if (