ref: 246326f41195d0ccf1f5c88c8e8884b2cacd1103
parent: 8c137774d87949048b52af9ae6eff3b17faaa1bc
author: Ali Gholami Rudi <[email protected]>
date: Sat Sep 30 09:36:52 EDT 2017
ren: output formatted lines immediately after blank lines Otherwise, if the adjustment (.ad) is changed, the new value takes effect. For instance in: .ad pl paragraph... .ad pr paragraph... Note that this happens only for whole-paragraph adjustment algorithms (.ad pX) and using .sp request instead of the blank line worked as expected. Reported and tested by aksr <[email protected]>.
--- a/ren.c
+++ b/ren.c
@@ -1004,7 +1004,7 @@
}
}
/* flush the line if necessary */
- if ((!FMT_PAR() && (c == ' ' || c == '\n')) || c < 0)
+ if (c == ' ' || c == '\n' || c < 0)
ren_fmtpop(cfmt);
if (c == '\n' || ren_nl) /* end or start of input line */
n_lb = f_hpos();