summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-18 19:03:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-18 19:03:36 +0000
commitb24acbb5f3ae16c8a4e9645043803117dda71323 (patch)
tree1a7428e9636ad90860f62860b0e85c725e8cb556 /man_html.c
parentd6c7a4661f77e1989e0da0c6d16c039362c1d97d (diff)
downloadmandoc-b24acbb5f3ae16c8a4e9645043803117dda71323.tar.gz
Made sure devices and formats recognise that -man and -mdoc have different syntax for scaling widths: -mdoc assumes no unit means that the value is a string literal while -man instead uses the default vertical/horizontal scale.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/man_html.c b/man_html.c
index de1cf2d8..f6939321 100644
--- a/man_html.c
+++ b/man_html.c
@@ -222,7 +222,7 @@ a2width(const struct man_node *n, struct roffsu *su)
if (MAN_TEXT != n->type)
return(0);
- if (a2roffsu(n->string, su))
+ if (a2roffsu(n->string, su, SCALE_BU))
return(1);
return(0);
@@ -325,11 +325,9 @@ man_br_pre(MAN_ARGS)
SCALE_VS_INIT(&su, 1);
- if (MAN_sp == n->tok) {
- su.scale = 1;
- if (n->child)
- a2roffsu(n->child->string, &su);
- } else if (MAN_br == n->tok)
+ if (MAN_sp == n->tok && n->child)
+ a2roffsu(n->child->string, &su, SCALE_VS);
+ else if (MAN_br == n->tok)
su.scale = 0;
bufcat_su(h, "height", &su);