The attached patch file seems to solve both this bug and #67833. Could
you please review, and create a new release if it's fine?
Cheers/alex
diff -Naur Text-EP3-1.10/lib/Text/EP3.pm Text-EP3-1.11/lib/Text/EP3.pm
--- Text-EP3-1.10/lib/Text/EP3.pm 2006-03-02 14:04:50.000000000 +0100
+++ Text-EP3-1.11/lib/Text/EP3.pm 2011-04-29 18:07:01.000000000 +0200
@@ -916,6 +916,8 @@
# Clear the line so that nothing prints
$_ = '';
}
+ # re-sync after directives
+ $sync_start_sent = 0;
}
if (! $self->{Keep_Comments}) {
# delete the blank lines which are a result of comment deletion
@@ -1448,7 +1450,7 @@
print "Ifdef = $self->{Ifdef}\n" if $self->{Debug} & 16;
# see if the key is defined
- if (! defined $self->{Keyline}{$key}) {
+ if ((! defined $self->{Define_List}{$key}) && (! defined $self->{Replace_List}{$key})) {
$skip = 1;
}