Wrap long single-line comment messages.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 29 Apr 2014 23:20:26 +0000 (00:20 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 29 Apr 2014 23:20:26 +0000 (00:20 +0100)
convert

diff --git a/convert b/convert
index 7541ff1..6c7278d 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)) {