From f9f885c1e8698d5ea3f3db06579ea043741137e3 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'man_term.c') diff --git a/man_term.c b/man_term.c index 9a9abafd..f3a87340 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.159 2014/12/04 02:05:42 schwarze Exp $ */ +/* $Id: man_term.c,v 1.160 2014/12/23 01:57:35 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -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 v1.2.3-56-ge451