From 8cf75f23fe223588cbd8e30f302bf77b766511bc Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Thu, 1 May 2014 01:30:40 +0430 Subject: [PATCH] ren: allow right-adjusted un-filled text It seems an inconsistency in the original troff that the combination of ".nf" and ".ad r" or "ad c" does not right-adjust or centre the unfilled input lines. This is effective only when compatibility mode is off. --- ren.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ren.c b/ren.c index 1f9dd1f..323259a 100644 --- a/ren.c +++ b/ren.c @@ -360,7 +360,7 @@ static int ren_passline(struct fmt *fmt) return 0; sbuf_init(&sbuf); fmt_nextline(fmt, &sbuf, &w, &li, &ll, &els_neg, &els_pos); - if (!n_u || n_na) + if ((n_cp && !n_u) || n_na) ad = AD_L; if (n_ce) ad = AD_C; -- 2.11.4.GIT