From 6ac49476c1dd6df815b83a487dda7040d701d05f Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 22 Dec 2024 15:28:18 +0100 Subject: [PATCH] src/bin/diffman: Run the entire groff pipeline Signed-off-by: Alejandro Colomar --- src/bin/diffman | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/bin/diffman b/src/bin/diffman index 172a825ec..40c33cbe1 100755 --- a/src/bin/diffman +++ b/src/bin/diffman @@ -49,8 +49,17 @@ printf '%s\n' "$2.XXXXXX" \ | xargs mktemp -t \ | read -r t2; -groff -man -Tutf8 <"$p1" >"$t1"; -groff -man -Tutf8 <"$p2" >"$t2"; +preconv <"$p1" \ +| tbl \ +| eqn -Tutf8 \ +| troff -man -Tutf8 \ +| grotty >"$t1"; + +preconv <"$p2" \ +| tbl \ +| eqn -Tutf8 \ +| troff -man -Tutf8 \ +| grotty >"$t2"; # shellcheck disable=SC2206 # We want only non-empty variables in the array. -- 2.47.2