From dde1e73d1f6c01a4b6b2d33dfe1a24e4686d270a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 23 Dec 2014 01:57:35 +0000 Subject: correctly handle scaling units after .PD --- man_term.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man_term.c b/man_term.c index 2d988720..e7b6a71d 100644 --- a/man_term.c +++ b/man_term.c @@ -288,14 +288,16 @@ pre_literal(DECL_ARGS) static int pre_PD(DECL_ARGS) { + struct roffsu su; n = n->child; - if (0 == n) { + if (n == NULL) { mt->pardist = 1; return(0); } assert(MAN_TEXT == n->type); - mt->pardist = atoi(n->string); + if (a2roffsu(n->string, &su, SCALE_VS)) + mt->pardist = term_vspan(p, &su); return(0); } -- cgit