chiark / gitweb /
Wrap long single-line comment messages.
[adns.git] / convert
diff --git a/convert b/convert
index 7541ff12c258bc65ce3c53e71115103a09e4bd23..6c7278d4bda4d21dcb3fd563f484335b293b38ee 100755 (executable)
--- a/convert
+++ b/convert
@@ -92,6 +92,12 @@ cat >$tmp/msg-filter <<'FEND'
 perl -ne '
                $out .= $_;
        END {
+               if ($out !~ /\n.*\n/) {
+                       $out = `fmt <<'\''EOF'\''
+$out
+EOF
+`;
+               }
                if ($out =~ m/^\@\@/s &&
                    ($out =~ m/^\+(?!u?adns).*\w.*$/m ||
                     $out =~ m/^\-(?!u?adns).*\w.*$/m)) {