From: Mark Wooding Date: Tue, 29 Apr 2014 23:13:28 +0000 (+0100) Subject: Avoid printing removed lines unless necessary; avoid version headers. X-Git-Tag: adns-1.5.0-rc0~114^2~2^2~2 X-Git-Url: https://git.distorted.org.uk/~mdw/adns/commitdiff_plain/95360dba667df074a6d5ca632fb4ec4ec551e40d Avoid printing removed lines unless necessary; avoid version headers. --- diff --git a/convert b/convert index eb1ca3c..7541ff1 100755 --- a/convert +++ b/convert @@ -93,7 +93,8 @@ perl -ne ' $out .= $_; END { if ($out =~ m/^\@\@/s && - $out =~ m/^(?:\+ )?[^\@ ].*\w.*$/m) { + ($out =~ m/^\+(?!u?adns).*\w.*$/m || + $out =~ m/^\-(?!u?adns).*\w.*$/m)) { print $&, "\n\n" or die $!; } print $out or die $!;