ref: 8cf75f23fe223588cbd8e30f302bf77b766511bc
parent: 4338ad0427d0aaa401b2f9f2411c0ff239ce7d34
author: Ali Gholami Rudi <ali@rudi.ir>
date: Wed Apr 30 21:30:40 EDT 2014
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.
--- a/ren.c
+++ b/ren.c
@@ -360,7 +360,7 @@
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;