From f1ec69ced69f349c300d71b62a75d5829b6ac2e0 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 30 Apr 2014 00:20:26 +0100 Subject: [PATCH] Wrap long single-line comment messages. --- convert | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/convert b/convert index 7541ff1..6c7278d 100755 --- 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)) { -- 2.11.0