diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-23 01:57:35 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-23 01:57:35 +0000 |
commit | dde1e73d1f6c01a4b6b2d33dfe1a24e4686d270a (patch) | |
tree | 2418c3f5a48c1ac9847c8ae0cd3e86686d376118 /man_term.c | |
parent | 49764a9c2f5aba1295cfa9bbd4749c62b4acade9 (diff) | |
download | mandoc-dde1e73d1f6c01a4b6b2d33dfe1a24e4686d270a.tar.gz |
correctly handle scaling units after .PD
Diffstat (limited to 'man_term.c')
-rw-r--r-- | man_term.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); } |