shithub: neatroff

Download patch

ref: 8f26d07ded4858e6e782be11ee74fe896d713c79
parent: 2b1a13e49778f57b8c6495ae3edc7c0456077da1
author: Ali Gholami Rudi <[email protected]>
date: Wed Apr 5 13:50:43 EDT 2017

wb: use \s[] for sizes larger than 99

--- a/wb.c
+++ b/wb.c
@@ -71,7 +71,10 @@
 		wb->f = R_F(wb);
 	}
 	if (wb->s != R_S(wb)) {
-		sbuf_printf(&wb->sbuf, "%cs(%02d", c_ec, R_S(wb));
+		if (R_S(wb) < 100)
+			sbuf_printf(&wb->sbuf, "%cs(%02d", c_ec, R_S(wb));
+		else
+			sbuf_printf(&wb->sbuf, "%cs[%d]", c_ec, R_S(wb));
 		wb->s = R_S(wb);
 	}
 	if (!n_cp && wb->m != R_M(wb)) {