From 34cfc3cf12ba447dd8d65c162148843801b8fa5b Mon Sep 17 00:00:00 2001 From: Adolfo Perez Alvarez Date: Tue, 12 Sep 2023 17:02:57 +0200 Subject: [PATCH] scmfmt - Use par instead of fmt and increase default width The `-p` option is only available in OpenBSD. As there's no standard way of ignoring lines by prefix, use `par`, which at least will be installable almost everywhere. --- scmfmt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scmfmt b/scmfmt index 7145d41..f825e40 100755 --- a/scmfmt +++ b/scmfmt @@ -21,9 +21,9 @@ i\ bl' | sed -e '1s/^/./' -e 's/^ /./' | -fmt -p | +par -P=. | awk ' -BEGIN { LIMIT = 65 } +BEGIN { LIMIT = 72 } NR == 1 || /^[^\.]/ || length($0) < LIMIT { sub(/^\./, NR == 1 ? "" : " "); print;