* mdocml: correctly handle scaling units after .PD
@ 2014-12-23 1:58 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-12-23 1:58 UTC (permalink / raw)
To: source
Log Message:
-----------
correctly handle scaling units after .PD
Modified Files:
--------------
mdocml:
man_term.c
Revision Data
-------------
Index: man_term.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/man_term.c,v
retrieving revision 1.159
retrieving revision 1.160
diff -Lman_term.c -Lman_term.c -u -p -r1.159 -r1.160
--- man_term.c
+++ 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);
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-23 1:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-23 1:58 mdocml: correctly handle scaling units after .PD schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).